toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (detailedState != null) 'detailedState': detailedState!,
      if (detailedStateReason != null)
        'detailedStateReason': detailedStateReason!,
      if (instance != null) 'instance': instance!,
      if (lastComplianceCheckTime != null)
        'lastComplianceCheckTime': lastComplianceCheckTime!,
      if (lastComplianceRunId != null)
        'lastComplianceRunId': lastComplianceRunId!,
      if (name != null) 'name': name!,
      if (osPolicyCompliances != null)
        'osPolicyCompliances': osPolicyCompliances!,
      if (state != null) 'state': state!,
    };