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