toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (description != null) 'description': description!,
if (fields != null) 'fields': fields!,
if (mode != null) 'mode': mode!,
if (name != null) 'name': name!,
if (type != null) 'type': type!,
};