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