fromJson static method
Implementation
static CubitStateEntity fromJson(Map<String, dynamic> json) {
final fields = <ID, Variable>{};
if (json['fields'] != null) {
for (final entry in json['fields'].entries) {
fields[entry.key] = Variable.fromJson(entry.value);
}
}
return CubitStateEntity(
id: json['id'],
name: json['name'],
fields: fields,
);
}