toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (categories != null) 'categories': categories!,
      if (collation != null) 'collation': collation!,
      if (defaultValueExpression != null)
        'defaultValueExpression': defaultValueExpression!,
      if (description != null) 'description': description!,
      if (fields != null) 'fields': fields!,
      if (maxLength != null) 'maxLength': maxLength!,
      if (mode != null) 'mode': mode!,
      if (name != null) 'name': name!,
      if (policyTags != null) 'policyTags': policyTags!,
      if (precision != null) 'precision': precision!,
      if (rangeElementType != null) 'rangeElementType': rangeElementType!,
      if (roundingMode != null) 'roundingMode': roundingMode!,
      if (scale != null) 'scale': scale!,
      if (type != null) 'type': type!,
    };