FriendCheckResultEntity.fromJson constructor

FriendCheckResultEntity.fromJson(
  1. dynamic data
)

Implementation

FriendCheckResultEntity.fromJson(data) {
  Map<String, dynamic> json =
      data is Map ? data.cast<String, dynamic>() : jsonDecode(data);
  if (json['userID'] != null) userID = json['userID'];
  if (json['resultCode'] != null) resultCode = json['resultCode'];
  if (json['resultInfo'] != null) resultInfo = json['resultInfo'];
  if (json['resultType'] != null)
    resultType = FriendRelationTypeTool.getByInt(json['resultType']);
}