toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (basicConstraints != null) 'basicConstraints': basicConstraints!,
      if (expiryDate != null) 'expiryDate': expiryDate!,
      if (isValid != null) 'isValid': isValid!,
      if (issuer != null) 'issuer': issuer!,
      if (publicKey != null) 'publicKey': publicKey!,
      if (serialNumber != null) 'serialNumber': serialNumber!,
      if (sigAlgName != null) 'sigAlgName': sigAlgName!,
      if (subject != null) 'subject': subject!,
      if (subjectAlternativeNames != null)
        'subjectAlternativeNames': subjectAlternativeNames!,
      if (validFrom != null) 'validFrom': validFrom!,
      if (version != null) 'version': version!,
    };