fromJson static method
Implementation
static WeChatResult fromJson(dynamic json) {
return WeChatResult(
message: json["message"],
statusCode: json["status_code"],
wechatId: json["status_code"] == 200
? WechatId.fromJson(json['data'])
: null, // 此微信已经绑定
wechatUserinfo: json["status_code"] == 201
? WechatUserinfo.fromJson(json['data'])
: null // 此微信首次登录
);
}