PassportElementErrorFrontSide.fromJson constructor

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

Creates a PassportElementErrorFrontSide object from JSON object

Implementation

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