PassportElementErrorTranslationFile.fromJson constructor

PassportElementErrorTranslationFile.fromJson(
  1. Map<String, dynamic> json
)

Creates a PassportElementErrorTranslationFile object from a JSON object

Implementation

factory PassportElementErrorTranslationFile.fromJson(
  Map<String, dynamic> json,
) {
  return PassportElementErrorTranslationFile(
    source: json['source']!,
    type: PassportType.fromJson(json['type']!),
    message: json['message']!,
    fileHash: json['file_hash']!,
  );
}