fromJson static method

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

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(
      tdMapFromJson(json['formatting_type']),
    ),
  );
}