PassportElementErrorDataField.fromJson constructor

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

Creates a PassportElementErrorDataField object from JSON object

Implementation

factory PassportElementErrorDataField.fromJson(Map<String, dynamic> json) {
  return PassportElementErrorDataField(
    source: json['source']!,
    type: PassportType.fromJson(json['type']!),
    message: json['message']!,
    fieldName: json['field_name']!,
    dataHash: json['data_hash']!,
  );
}