toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'success': success,
if (netError != null) 'netError': netError,
if (netErrorName != null) 'netErrorName': netErrorName,
if (httpStatusCode != null) 'httpStatusCode': httpStatusCode,
if (stream != null) 'stream': stream!.toJson(),
if (headers != null) 'headers': headers!.toJson(),
};
}