ptzConfigurationConverter static method

List<PtzConfiguration> ptzConfigurationConverter(
  1. dynamic json
)

Implementation

static List<PtzConfiguration> ptzConfigurationConverter(dynamic json) {
  if (json == null) {
    return <PtzConfiguration>[];
  } else if (json is List) {
    return json
        .map((e) => PtzConfiguration.fromJson(e as Map<String, dynamic>))
        .toList();
  }

  return [PtzConfiguration.fromJson(json as Map<String, dynamic>)];
}