toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final allowedValues = this.allowedValues;
  final applyMethod = this.applyMethod;
  final applyType = this.applyType;
  final dataType = this.dataType;
  final description = this.description;
  final isModifiable = this.isModifiable;
  final minimumEngineVersion = this.minimumEngineVersion;
  final parameterName = this.parameterName;
  final parameterValue = this.parameterValue;
  final source = this.source;
  final supportedEngineModes = this.supportedEngineModes;
  return {
    if (allowedValues != null) 'AllowedValues': allowedValues,
    if (applyMethod != null) 'ApplyMethod': applyMethod.toValue(),
    if (applyType != null) 'ApplyType': applyType,
    if (dataType != null) 'DataType': dataType,
    if (description != null) 'Description': description,
    if (isModifiable != null) 'IsModifiable': isModifiable,
    if (minimumEngineVersion != null)
      'MinimumEngineVersion': minimumEngineVersion,
    if (parameterName != null) 'ParameterName': parameterName,
    if (parameterValue != null) 'ParameterValue': parameterValue,
    if (source != null) 'Source': source,
    if (supportedEngineModes != null)
      'SupportedEngineModes': supportedEngineModes,
  };
}