toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var columns = this.columns;
  var constraintType = this.constraintType;

  final json = <String, Object?>{};
  json[r'columns'] = columns.map((i) => i.toJson()).toList();
  if (constraintType != null) {
    json[r'constraintType'] = constraintType;
  }
  return json;
}