toJson method
Converts the instance to a JSON map.
Implementation
Json toJson() {
return {
'results': results.map((detail) => detail.toJson()).toList(),
};
}
Converts the instance to a JSON map.
Json toJson() {
return {
'results': results.map((detail) => detail.toJson()).toList(),
};
}