toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final monitoringAppSpecification = this.monitoringAppSpecification;
  final monitoringInputs = this.monitoringInputs;
  final monitoringOutputConfig = this.monitoringOutputConfig;
  final monitoringResources = this.monitoringResources;
  final roleArn = this.roleArn;
  final baselineConfig = this.baselineConfig;
  final environment = this.environment;
  final networkConfig = this.networkConfig;
  final stoppingCondition = this.stoppingCondition;
  return {
    'MonitoringAppSpecification': monitoringAppSpecification,
    'MonitoringInputs': monitoringInputs,
    'MonitoringOutputConfig': monitoringOutputConfig,
    'MonitoringResources': monitoringResources,
    'RoleArn': roleArn,
    if (baselineConfig != null) 'BaselineConfig': baselineConfig,
    if (environment != null) 'Environment': environment,
    if (networkConfig != null) 'NetworkConfig': networkConfig,
    if (stoppingCondition != null) 'StoppingCondition': stoppingCondition,
  };
}