analysisAuthInfo method

Map<String, dynamic> analysisAuthInfo(
  1. String dataJson
)

Implementation

Map<String, dynamic> analysisAuthInfo(String dataJson) {
  var dataMap = JsonUtils.fromJson(dataJson);
  Map<String, dynamic> map = {};
  map["province"] = dataMap["province"];
  map["city"] = dataMap["city"];
  map["country"] = dataMap["country"];
  map["unionId"] = dataMap["unionid"];
  map["openId"] = dataMap["openid"];
  map["gender"] = dataMap["sex"];
  map["nickName"] = dataMap["nickname"];
  map["portrait"] = dataMap["headimgurl"];
  map["userId"] = dataMap["userId"];
  return map;
}