toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (osPolicyAssignment != null)
        'osPolicyAssignment': osPolicyAssignment!,
      if (osPolicyId != null) 'osPolicyId': osPolicyId!,
      if (osPolicyResourceCompliances != null)
        'osPolicyResourceCompliances': osPolicyResourceCompliances!
            .map((value) => value.toJson())
            .toList(),
      if (state != null) 'state': state!,
    };