RadarValueList.fromJson constructor
RadarValueList.fromJson(
- Object? json
Implementation
factory RadarValueList.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return RadarValueList(
alias: (map['alias'] as String),
created:
DateTime.fromMillisecondsSinceEpoch((map['created'] as int).toInt()),
createdBy: (map['created_by'] as String),
id: (map['id'] as String),
itemType: RadarValueListItemType.fromJson(map['item_type']),
listItems: RadarValueListListItems.fromJson(map['list_items']),
livemode: (map['livemode'] as bool),
metadata: (map['metadata'] as Map).cast<String, Object?>().map((
key,
value,
) =>
MapEntry(
key,
(value as String),
)),
name: (map['name'] as String),
);
}