Map<String, dynamic> toMap() { return MessageRequestMapper.ensureInitialized() .encodeMap<MessageRequest>(this as MessageRequest); }