TextEntityTypeDateTime.fromJson constructor

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

Parses a TextEntityTypeDateTime from TDLib JSON.

Implementation

factory TextEntityTypeDateTime.fromJson(Map<String, dynamic> json) =>
    TextEntityTypeDateTime(
      unixTime: _readInt(json['unix_time']),
      formattingType: _readOptional(
        json['formatting_type'],
        DateTimeFormattingType.fromJson,
      ),
    );