fromJson static method
Inherited by: TextEntityTypeBankCardNumber TextEntityTypeBlockQuote TextEntityTypeBold TextEntityTypeBotCommand TextEntityTypeCashtag TextEntityTypeCode TextEntityTypeCustomEmoji TextEntityTypeDateTime TextEntityTypeEmailAddress TextEntityTypeExpandableBlockQuote TextEntityTypeHashtag TextEntityTypeItalic TextEntityTypeMediaTimestamp TextEntityTypeMentionName TextEntityTypeMention TextEntityTypePhoneNumber TextEntityTypePreCode TextEntityTypePre TextEntityTypeSpoiler TextEntityTypeStrikethrough TextEntityTypeTextUrl TextEntityTypeTonAddress TextEntityTypeUnderline TextEntityTypeUrl
Implementation
static TextEntityTypeDateTime? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return TextEntityTypeDateTime(
unixTime: (json['unix_time'] as int?) ?? 0,
formattingType: DateTimeFormattingType.fromJson(
json['formatting_type'] as Map<String, dynamic>?),
);
}