PassportElementErrorSelfie.fromJson constructor

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

Creates a PassportElementErrorSelfie object from JSON object

Implementation

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