NIMStickTopSessionInfo.fromMap constructor Null safety

NIMStickTopSessionInfo.fromMap(
  1. Map<String, dynamic> param
)

Implementation

factory NIMStickTopSessionInfo.fromMap(Map<String, dynamic> param) {
  return NIMStickTopSessionInfo(
    sessionId: param['sessionId'] as String,
    sessionType:
        NIMSessionTypeConverter().fromValue(param['sessionType'] as String),
    ext: param['ext'] as String?,
    createTime: param['createTime'] as int?,
    updateTime: param['updateTime'] as int?,
  );
}