GlobeCoordinates.fromJson constructor

GlobeCoordinates.fromJson(
  1. String source
)

Creates a GlobeCoordinates object from a JSON string.

The JSON string should contain the latitude and longitude as key-value pairs.

Implementation

factory GlobeCoordinates.fromJson(String source) =>
    GlobeCoordinates.fromMap(json.decode(source) as Map<String, dynamic>);