DiffEntity.fromJson constructor

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

Parses a DiffEntity from TDLib JSON.

Implementation

factory DiffEntity.fromJson(Map<String, dynamic> json) => DiffEntity(
  offset: _readInt(json['offset']),
  length: _readInt(json['length']),
  type: _readObject(json['type'], DiffEntityType.fromJson),
);