CollectibleItemType.fromJson constructor
Parses whichever CollectibleItemType subtype the JSON describes.
Implementation
factory CollectibleItemType.fromJson(Map<String, dynamic> json) {
final object = tdObjectFactories[json['@type']]?.call(json);
return object is CollectibleItemType
? object
: UndecodedCollectibleItemType(json);
}