PostLocation.fromJson constructor

PostLocation.fromJson(
  1. Map json_
)

Implementation

PostLocation.fromJson(core.Map json_)
    : this(
        lat: json_.containsKey('lat')
            ? (json_['lat'] as core.num).toDouble()
            : null,
        lng: json_.containsKey('lng')
            ? (json_['lng'] as core.num).toDouble()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        span: json_.containsKey('span') ? json_['span'] as core.String : null,
      );