toJson method

Map toJson()

Implementation

Map toJson(){
  Map _result = {};

  if (origin != null) _result.addAll({"origin": origin});
  if (type != null) _result.addAll({"type": type});
  if (version != null) _result.addAll({"version": version});
  if (paStatus != null) _result.addAll({"paStatus": paStatus});
  if (serialNumber != null) _result.addAll({"serialNumber": serialNumber});
  if (signatureAlgorithm != null) _result.addAll({"signatureAlgorithm": signatureAlgorithm});
  if (subjectPKAlgorithm != null) _result.addAll({"subjectPKAlgorithm": subjectPKAlgorithm});
  if (fileName != null) _result.addAll({"fileName": fileName});
  if (validity != null) _result.addAll({"validity": validity});
  if (issuer != null) _result.addAll({"issuer": issuer});
  if (subject != null) _result.addAll({"subject": subject});
  _result.addAll({"notifications": notifications});
  _result.addAll({"extensions": extensions});

  return _result;
}