Return a json made with these properties.
Map<String, dynamic> toJson() => { ParamsKey.onlineContext: onlineContext?.toJson() };