ConversationReceiptsRequestModel.fromJson constructor

ConversationReceiptsRequestModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ConversationReceiptsRequestModel.fromJson(Map<String, dynamic> json) {
  return ConversationReceiptsRequestModel(
    conversationKey: json['conversation_key'],
    startingAt: DateTime.fromMillisecondsSinceEpoch(json['starting_at']),
    updatedAfter: json['updated_after'] != null
        ? DateTime.fromMillisecondsSinceEpoch(json['updated_after'])
        : null,
  );
}