toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (commonName != null) 'commonName': commonName!,
      if (hexSerialNumber != null) 'hexSerialNumber': hexSerialNumber!,
      if (lifetime != null) 'lifetime': lifetime!,
      if (notAfterTime != null) 'notAfterTime': notAfterTime!,
      if (notBeforeTime != null) 'notBeforeTime': notBeforeTime!,
      if (subject != null) 'subject': subject!.toJson(),
      if (subjectAltName != null) 'subjectAltName': subjectAltName!.toJson(),
    };