NIMMessageKey.fromMap constructor Null safety

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

Implementation

factory NIMMessageKey.fromMap(Map<String, dynamic> param) {
  return NIMMessageKey(
    sessionType:
        NIMSessionTypeConverter().fromValue(param['sessionType'] as String),
    fromAccount: param['fromAccount'] as String?,
    toAccount: param['toAccount'] as String?,
    time: param['time'] as int?,
    serverId: param['serverId'] as int?,
    uuid: param['uuid'] as String?,
  );
}