toJson method
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
if (children != null) r'children': children,
if (error != null) r'error': error,
if (name != null) r'name': name,
if (result != null) r'result': result,
if (state != null) r'state': state,
};
}