V2TimFriendInfo.fromJson constructor

V2TimFriendInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

V2TimFriendInfo.fromJson(Map<String, dynamic> json) {
  userID = json['userID'];
  friendRemark = json['friendRemark'];
  friendGroups = json['friendGroups'].cast<String>();
  friendCustomInfo = json['friendCustomInfo'] == null
      ? <String, String>{}
      : Map<String, String>.from(json['friendCustomInfo']);
  userProfile = json['userProfile'] != null
      ? V2TimUserFullInfo.fromJson(json['userProfile'])
      : null;
}