toJson method
Implementation
@override
Object toJson() {
return {
'name': name,
'description': description,
if (parameters != null) 'parameters': parameters!.toJson(),
if (parametersJsonSchema != null)
'parametersJsonSchema': parametersJsonSchema!.toJson(),
if (response != null) 'response': response!.toJson(),
if (responseJsonSchema != null)
'responseJsonSchema': responseJsonSchema!.toJson(),
if (behavior.isNotDefault) 'behavior': behavior.toJson(),
};
}