toJson method

Map<String, Object> toJson()

Converts a ClusterTrustBundleSpec instance to JSON data.

Implementation

Map<String, Object> toJson() {
  final jsonData = <String, Object>{};

  final tempSignerName = signerName;
  final tempTrustBundle = trustBundle;

  if (tempSignerName != null) {
    jsonData['signerName'] = tempSignerName;
  }

  jsonData['trustBundle'] = tempTrustBundle;

  return jsonData;
}