fromJson static method

Friend fromJson(
  1. dynamic json
)

Implementation

static Friend fromJson(dynamic json) {
  return Friend(
      uid: json['uid'],
      username: json['username'],
      nickname: json['nickname'],
      avatar: json['avatar'],
      description: json['description'],
      mobile: json['mobile']);
}