toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      if (id != null) 'id': id,
      'documentType': documentType.toJson(),
      if (issuingCountry != null) 'issuingCountry': issuingCountry,
      if (allCountries != null) 'allCountries': allCountries,
    };