toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.type != null) {
    json[r'type'] = this.type;
  } else {
    json[r'type'] = null;
  }
  if (this.uniqueIdentifier != null) {
    json[r'uniqueIdentifier'] = this.uniqueIdentifier;
  } else {
    json[r'uniqueIdentifier'] = null;
  }
  if (this.issuingCountryCode != null) {
    json[r'issuingCountryCode'] = this.issuingCountryCode;
  } else {
    json[r'issuingCountryCode'] = null;
  }
  if (this.expiresOn != null) {
    json[r'expiresOn'] = _dateFormatter.format(this.expiresOn!);
  } else {
    json[r'expiresOn'] = null;
  }
  return json;
}