toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final certificate = this.certificate;
  final privateKey = this.privateKey;
  final chain = this.chain;
  return {
    'Certificate': certificate,
    'PrivateKey': privateKey,
    if (chain != null) 'Chain': chain,
  };
}