RadarValueListItem.fromJson constructor

RadarValueListItem.fromJson(
  1. Object? json
)

Implementation

factory RadarValueListItem.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return RadarValueListItem(
    created:
        DateTime.fromMillisecondsSinceEpoch((map['created'] as int).toInt()),
    createdBy: (map['created_by'] as String),
    id: (map['id'] as String),
    livemode: (map['livemode'] as bool),
    value: (map['value'] as String),
    valueList: (map['value_list'] as String),
  );
}