PassportElementErrorUnspecified.fromJson constructor

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

Creates a PassportElementErrorUnspecified object from JSON object

Implementation

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