userStatus2DartUserStatus static method

V2TimUserStatus userStatus2DartUserStatus(
  1. dynamic jsonUserStatus
)

Implementation

static V2TimUserStatus userStatus2DartUserStatus(jsonUserStatus) {
  return V2TimUserStatus.fromJson({
    "userID": jsonUserStatus["user_status_identifier"],
    // type赋值相同
    "statusType": jsonUserStatus["user_status_status_type"],
    "customStatus": jsonUserStatus["user_status_custom_status"],
  });
}