PassportElementError.fromJson constructor

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

Parse from a json

Implementation

PassportElementError.fromJson(Map<String, dynamic> json) {
  this.type =
      PassportElementType.fromJson(json['type'] ?? <String, dynamic>{});
  this.message = json['message'];
  this.source = PassportElementErrorSource.fromJson(
      json['source'] ?? <String, dynamic>{});
}