Serializes to a map.
Map<String, Object?> toMap() { return <String, Object?>{'location': location.toMap()}; }