toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final componentUpdatePolicy = this.componentUpdatePolicy;
  final configurationValidationPolicy = this.configurationValidationPolicy;
  final failureHandlingPolicy = this.failureHandlingPolicy;
  return {
    if (componentUpdatePolicy != null)
      'componentUpdatePolicy': componentUpdatePolicy,
    if (configurationValidationPolicy != null)
      'configurationValidationPolicy': configurationValidationPolicy,
    if (failureHandlingPolicy != null)
      'failureHandlingPolicy': failureHandlingPolicy.toValue(),
  };
}