toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (algorithm != null) 'algorithm': algorithm!,
      if (attestation != null) 'attestation': attestation!,
      if (createTime != null) 'createTime': createTime!,
      if (destroyEventTime != null) 'destroyEventTime': destroyEventTime!,
      if (destroyTime != null) 'destroyTime': destroyTime!,
      if (externalDestructionFailureReason != null)
        'externalDestructionFailureReason': externalDestructionFailureReason!,
      if (externalProtectionLevelOptions != null)
        'externalProtectionLevelOptions': externalProtectionLevelOptions!,
      if (generateTime != null) 'generateTime': generateTime!,
      if (generationFailureReason != null)
        'generationFailureReason': generationFailureReason!,
      if (importFailureReason != null)
        'importFailureReason': importFailureReason!,
      if (importJob != null) 'importJob': importJob!,
      if (importTime != null) 'importTime': importTime!,
      if (name != null) 'name': name!,
      if (protectionLevel != null) 'protectionLevel': protectionLevel!,
      if (reimportEligible != null) 'reimportEligible': reimportEligible!,
      if (state != null) 'state': state!,
    };