RadarValueListUpdateOptions.fromJson constructor

RadarValueListUpdateOptions.fromJson(
  1. Object? json
)

Implementation

factory RadarValueListUpdateOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return RadarValueListUpdateOptions(
    alias: map['alias'] == null ? null : (map['alias'] as String),
    expand: map['expand'] == null
        ? null
        : (map['expand'] as List<Object?>)
            .map((el) => (el as String))
            .toList(),
    metadata: map['metadata'] == null
        ? null
        : (map['metadata'] as Map).cast<String, Object?>().map((
              key,
              value,
            ) =>
                MapEntry(
                  key,
                  (value as String),
                )),
    name: map['name'] == null ? null : (map['name'] as String),
  );
}