fromJson static method

FeedbackDataGeoPoint? fromJson(
  1. Map<String, dynamic>? json
)

Returns a new FeedbackDataGeoPoint instance and imports its values from json if it's non-null, null if json is null.

Implementation

static FeedbackDataGeoPoint? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return FeedbackDataGeoPoint(
    latitude: json[r'latitude'] == null ? null : json[r'latitude'].toDouble(),
    longitude:
        json[r'longitude'] == null ? null : json[r'longitude'].toDouble(),
    srid: json[r'srid'] == null ? null : json[r'srid'].toDouble(),
  );
}