toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final name = this.name;
  final sqlType = this.sqlType;
  final mapping = this.mapping;
  return {
    'Name': name,
    'SqlType': sqlType,
    if (mapping != null) 'Mapping': mapping,
  };
}