PassportElementErrorTranslationFiles.fromJson constructor

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

Creates a PassportElementErrorTranslationFiles object from JSON object

Implementation

factory PassportElementErrorTranslationFiles.fromJson(
  Map<String, dynamic> json,
) {
  return PassportElementErrorTranslationFiles(
    source: json['source']!,
    type: PassportType.fromJson(json['type']!),
    message: json['message']!,
    fileHashes: List<String>.from(json['file_hashes']! as List<dynamic>),
  );
}