fromElasticJson static method

Friend fromElasticJson(
  1. dynamic json
)

Implementation

static Friend fromElasticJson(dynamic json) {
  return Friend(
      uid: json['uid'],
      username: json['username'],
      nickname: json['nickname'],
      avatar: json['avatar'],
      description: json['description'],
      mobile: json['mobile'],
      latitude: json['location']['lat'],
      longtitude: json['location']['lon']);
}