toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'fetchResult': fetchResult.toJson(),
if (newSession != null) 'newSession': newSession!.toJson(),
if (failedRequest != null) 'failedRequest': failedRequest!.toJson(),
};
}