DocumentInfo.fromJson constructor

DocumentInfo.fromJson(
  1. Map<String, dynamic> data
)

Returns a DocumentInfo type from a JSON

Implementation

factory DocumentInfo.fromJson(Map<String, dynamic> data) {
  var self = DocumentInfo._();
  self._map["documentCode"] = data['documentCode'] ??
      {throw ArgumentError('documentCode should not be null')};
  self._map["issuingCountry"] = data['issuingCountry'] ??
      {throw ArgumentError('issuingCountry should not be null')};
  self._map["dateOfBirth"] = data['dateOfBirth'];
  self._map["dateOfExpiry"] = data['dateOfExpiry'];
  self._map["edlVersion"] = data['edlVersion'];
  return self;
}