toJson method
Converts the CsrConfig instance into a JSON-compatible Map.
The keys follow a specific CSR naming format.
Implementation
Map<String, dynamic> toJson() {
return {
"csr.common.name": commonName,
"csr.serial.number": serialNumber,
"csr.organization.identifier": organizationIdentifier,
"csr.organization.unit.name": organizationUnitName,
"csr.organization.name": organizationName,
"csr.country.name": countryName,
"csr.invoice.type": invoiceType,
"csr.location.address": locationAddress,
"csr.industry.business.category": industryBusinessCategory,
};
}