toJson method

Map<String, dynamic> toJson()

Implementation

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