core.Map<core.String, core.dynamic> toJson() => { if (receivedMessages != null) 'receivedMessages': receivedMessages!, };