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