toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (categoricalValueSpec != null)
    'categoricalValueSpec': categoricalValueSpec!,
  if (childParameterSpecs != null)
    'childParameterSpecs': childParameterSpecs!,
  if (discreteValueSpec != null) 'discreteValueSpec': discreteValueSpec!,
  if (doubleValueSpec != null) 'doubleValueSpec': doubleValueSpec!,
  if (integerValueSpec != null) 'integerValueSpec': integerValueSpec!,
  if (parameter != null) 'parameter': parameter!,
  if (parentCategoricalValues != null)
    'parentCategoricalValues': parentCategoricalValues!,
  if (parentDiscreteValues != null)
    'parentDiscreteValues': parentDiscreteValues!,
  if (parentIntValues != null) 'parentIntValues': parentIntValues!,
  if (scaleType != null) 'scaleType': scaleType!,
  if (type != null) 'type': type!,
};