Map<String, dynamic> toMap() => { "bbox": bbox == null ? [] : List<dynamic>.from(bbox!.map((x) => x)), "type": type, "properties": properties?.toMap(), "geometry": geometry?.toMap(), };