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