fromJson static method
Returns a new Container instance and imports its values from
value
if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static Container fromJson(dynamic value) {
if (value is Map) {
final json = value.cast<String, dynamic>();
return Container(
children: Pointer.listFromJson(json[r'children']),
xtype: mapValueOfType<String>(json, r'xtype'),
links: Links.mapFromJson(json[r'links']),
meta: ComponentMeta.fromJson(json[r'meta']),
type: ElementTypeEnum.fromJson(json[r'type']),
id: mapValueOfType<String>(json, r'id'),
label: mapValueOfType<String>(json, r'label'),
name: mapValueOfType<String>(json, r'name'),
);
}
throw Exception('value is not a map');
}