fromJson static method
Implementation
static PassportElementError? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return PassportElementError(
type: PassportElementType.fromJson(tdMapFromJson(json['type'])),
message: (json['message'] as String?) ?? '',
source: PassportElementErrorSource.fromJson(
tdMapFromJson(json['source']),
),
);
}