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