toJson method
Implementation
Map<String, Object?> toJson() => {
'name': name,
'type': type,
'rawType': rawType,
'isNullable': isNullable,
'isPrimaryKey': isPrimaryKey,
if (foreignKey case final fk?) 'foreignKey': fk.toJson(),
};