contentParameters property
Get additional parameters for the content.
This is availabe only for ContentType.roadMap, ContentType.humanVoice, ContentType.viewStyleHighRes and ContentType.viewStyleLowRes content types.
Returns
- ContentParameters object containing the additional parameters if available, null otherwise.
- RoadMapParameters object if the content is of type ContentType.roadMap and has additional parameters.
- VoiceParameters object if the content is of type ContentType.humanVoice and has additional parameters.
- StyleParameters object if the content is of type ContentType.viewStyleHighRes or ContentType.viewStyleLowRes and has additional parameters.
Implementation
ContentParameters? get contentParameters {
  final OperationResult resultString = objectMethod(
    pointerId,
    'ContentStoreItem',
    'getContentParameters',
  );
  if (resultString['gemApiError'] != 0) {
    return null;
  }
  final List<GemParameter> params =
      SearchableParameterList.init(resultString['result']).toList();
  final Set<String> keys = <String>{
    for (final GemParameter p in params)
      if (p.key != null && p.key!.isNotEmpty) p.key!,
  };
  if (keys.contains('Copyright')) {
    return RoadMapParameters.fromParameters(params);
  }
  if (keys.contains('native_language')) {
    return VoiceParameters.fromParameters(params);
  }
  if (keys.contains('Background-Color')) {
    return StyleParameters.fromParameters(params);
  }
  return null;
}