PassportElementError.fromJson constructor

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

Parse from a json

Implementation

factory PassportElementError.fromJson(Map<String, dynamic> json) => PassportElementError(
  type: PassportElementType.fromJson(json['type']),
  message: json['message'],
  source: PassportElementErrorSource.fromJson(json['source']),
);