Map<String, Object?> toWire() { final map = <String, Object?>{}; map['role'] = this.role.name; map['text'] = this.text; map['turn'] = this.turn; return map; }