FriendOperationResultEntity.fromJson constructor

FriendOperationResultEntity.fromJson(
  1. dynamic data
)

Implementation

FriendOperationResultEntity.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'];
}