toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (config != null) 'config': config!,
if (name != null) 'name': name!,
if (parent != null) 'parent': parent!,
if (state != null) 'state': state!,
};