toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (defaultValue != null) 'defaultValue': defaultValue!,
      if (description != null) 'description': description!,
      if (field != null) 'field': field!,
      if (fieldConstraints != null) 'fieldConstraints': fieldConstraints!,
      if (fieldDependencies != null) 'fieldDependencies': fieldDependencies!,
      if (fieldDescription != null) 'fieldDescription': fieldDescription!,
      if (inputConstraint != null) 'inputConstraint': inputConstraint!,
      if (knownValueDescriptions != null)
        'knownValueDescriptions': knownValueDescriptions!,
      if (name != null) 'name': name!,
      if (nestedFieldDescriptions != null)
        'nestedFieldDescriptions': nestedFieldDescriptions!,
      if (requiredItems != null) 'requiredItems': requiredItems!,
    };