fromJsonWithOtherMembers static method

GeometryObject fromJsonWithOtherMembers(
  1. Map<String, dynamic> json
)

Create a GeometryObject from JSON with support for other members

Implementation

static GeometryObject fromJsonWithOtherMembers(Map<String, dynamic> json) {
  final geometryObject = GeometryObject.deserialize(json);

  // Extract other members
  final otherMembers = extractOtherMembers(json, standardKeys);
  if (otherMembers.isNotEmpty) {
    geometryObject.setOtherMembers(otherMembers);
  }

  return geometryObject;
}