PassportElementErrorReverseSide.fromJson constructor

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

Creates a PassportElementErrorReverseSide object from JSON object

Implementation

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