fromJson static method
Inherited by: MessageReadDateMyPrivacyRestricted MessageReadDateRead MessageReadDateTooOld MessageReadDateUnread MessageReadDateUserPrivacyRestricted
Implementation
static MessageReadDate? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
switch (json['@type']) {
case MessageReadDateMyPrivacyRestricted.constructor:
return MessageReadDateMyPrivacyRestricted.fromJson(json);
case MessageReadDateRead.constructor:
return MessageReadDateRead.fromJson(json);
case MessageReadDateTooOld.constructor:
return MessageReadDateTooOld.fromJson(json);
case MessageReadDateUnread.constructor:
return MessageReadDateUnread.fromJson(json);
case MessageReadDateUserPrivacyRestricted.constructor:
return MessageReadDateUserPrivacyRestricted.fromJson(json);
default:
return null;
}
}