toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'name': name.name,
  if (length != null) 'length': length,
  if (precision != null) 'precision': precision,
  if (scale != null) 'scale': scale,
  if (customName != null) 'customName': customName,
  if (timezoneAware) 'timezoneAware': timezoneAware,
};