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