PassportElementErrorFile.fromJson constructor

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

Creates a PassportElementErrorFile object from JSON object

Implementation

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