PassportElementErrorFiles.fromJson constructor

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

Creates a PassportElementErrorFiles object from JSON object

Implementation

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