toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'label': label,
    'signature': signature,
    'integrity': integrity,
    'validityUrl': validityUrl,
    'date': date,
    'expires': expires,
    if (certUrl != null) 'certUrl': certUrl,
    if (certSha256 != null) 'certSha256': certSha256,
    if (certificates != null) 'certificates': [...?certificates],
  };
}