toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (createTime != null) 'createTime': createTime!,
      if (cryptoKeyBackend != null) 'cryptoKeyBackend': cryptoKeyBackend!,
      if (destroyScheduledDuration != null)
        'destroyScheduledDuration': destroyScheduledDuration!,
      if (importOnly != null) 'importOnly': importOnly!,
      if (labels != null) 'labels': labels!,
      if (name != null) 'name': name!,
      if (nextRotationTime != null) 'nextRotationTime': nextRotationTime!,
      if (primary != null) 'primary': primary!,
      if (purpose != null) 'purpose': purpose!,
      if (rotationPeriod != null) 'rotationPeriod': rotationPeriod!,
      if (versionTemplate != null) 'versionTemplate': versionTemplate!,
    };