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 =
ChatPushRemindType.values[map["remindType"]];
String conversationId = map["conversationId"];
EMConversationType conversationType =
EMConversationType.values[map["conversationType"]];
return ChatSilentModeResult(
expireTimestamp,
conversationType,
conversationId,
remindType,
startTime,
endTime,
);
}