Converts a Turn object into a map.
Map<String, dynamic> toJson() => { "turn": turn, "username": username, "password": password, };