toMap method

Map<String, dynamic> toMap()

Implementation

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