AliUserModel.fromJson constructor

AliUserModel.fromJson(
  1. Map<String, dynamic> jsonRes
)

Implementation

factory AliUserModel.fromJson(Map<String, dynamic> jsonRes) => AliUserModel(
  topAccessToken: asT<String>(jsonRes['topAccessToken'])!,
  openId: asT<String>(jsonRes['openId'])!,
  openSid: asT<String>(jsonRes['openSid'])!,
  nick: asT<String>(jsonRes['nick'])!,
  topAuthCode: asT<String>(jsonRes['topAuthCode'])!,
  avatarUrl: asT<String>(jsonRes['avatarUrl'])!,
);