fromJson static method
Returns a new State instance and imports its values from
json
if it's non-null, null if json
is null.
Implementation
static State? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return State(
id: json[r'id'],
type: json[r'type'],
name: json[r'name'],
description: json[r'description'],
color: json[r'color'],
progression: json[r'progression']?.toDouble(),
);
}