ChatSilentModeResult.fromJson constructor
ChatSilentModeResult.fromJson(- Map map
)
Implementation
factory ChatSilentModeResult.fromJson(Map map) {
int expireTimestamp = map["expireTs"];
ChatSilentModeTime startTime =
ChatSilentModeTime.fromJson(map["startTime"]);
ChatSilentModeTime endTime = ChatSilentModeTime.fromJson(map["endTime"]);
ChatPushRemindType remindType =
chatPushRemindTypeFromInt(map["remindType"]);
String conversationId = map["conversationId"];
EMConversationType conversationType =
conversationTypeFromInt(map["conversationType"]);
return ChatSilentModeResult(
expireTimestamp,
conversationType,
conversationId,
remindType,
startTime,
endTime,
);
}