fromJson static method

WechatUserinfo fromJson(
  1. dynamic json
)

Implementation

static WechatUserinfo fromJson(dynamic json) {
  return WechatUserinfo(
      openid: json['openid'],
      nickname: json['nickname'],
      sex: json['sex'],
      language: json['language'],
      city: json['city'],
      province: json['province'],
      country: json['country'],
      headimgurl: json['headimgurl'],
      unionid: json['unionid']);
}