toString method
override
Converts the ApiReturn object into its string representation.
This is useful for logging or debugging the result of an API call.
Implementation
@override
String toString() {
return 'ApiReturn{success: $success, returnCode: $returnCode, explanation: $explanation, data: ${data ?? 'null'}}';
}