Location.fromJson constructor

Location.fromJson(
  1. Map _json
)

Implementation

Location.fromJson(core.Map _json)
    : this(
        features: _json.containsKey('features')
            ? (_json['features'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        locationId: _json.containsKey('locationId')
            ? _json['locationId'] as core.String
            : null,
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
      );