MessageKeywordSearchConfig.fromMap constructor
Null safety
MessageKeywordSearchConfig.fromMap(- Map<String, dynamic> param
)
Implementation
factory MessageKeywordSearchConfig.fromMap(Map<String, dynamic> param) {
return MessageKeywordSearchConfig(
keyword: param['keyword'] as String?,
fromTime: param['fromTime'] as int?,
toTime: param['toTime'] as int?,
sessionLimit: param['sessionLimit'] as int?,
msgLimit: param['msgLimit'] as int?,
asc: param['asc'] as bool?,
p2pList: (param['p2pList'] as List<dynamic>?)
?.map((e) => e as String)
.toList(),
teamList: (param['teamList'] as List<dynamic>?)
?.map((e) => e as String)
.toList(),
senderList: (param['senderList'] as List<dynamic>?)
?.map((e) => e as String)
.toList(),
msgTypeList: (param['messageTypeList'] as List<dynamic>?)
?.map((e) => NIMMessageTypeConverter().fromValue(e))
.toList(),
msgSubtypeList: (param['msgSubtypeList'] as List<dynamic>?)
?.map((e) => e as int)
.toList(),
);
}