toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final allowedValues = this.allowedValues;
  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;
  return {
    if (allowedValues != null) 'AllowedValues': allowedValues,
    if (applyType != null) 'ApplyType': applyType.toValue(),
    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,
  };
}