OverlayCategory.fromJson constructor
Deserializes a JSON-compatible map to create an instance.
Used internally, not intended for direct use by consumers. The expected map structure may change without notice.
Implementation
factory OverlayCategory.fromJson(final Map<String, dynamic> json) {
return OverlayCategory(
img: Img.init(json['img']),
name: json['name'],
overlayuid: json['overlayuid'],
subcategories: json['subcategories'] != null
? (json['subcategories'] as List<dynamic>)
.map((final dynamic item) => OverlayCategory.fromJson(item))
.toList()
: <OverlayCategory>[],
uid: json['uid'],
);
}