toJson method
Implementation
Map<String, Object?> toJson() => {
'name': name,
'dtype': type.toJson(),
'nullable': nullable,
if (metadata.isNotEmpty) 'metadata': metadata,
};
Map<String, Object?> toJson() => {
'name': name,
'dtype': type.toJson(),
'nullable': nullable,
if (metadata.isNotEmpty) 'metadata': metadata,
};