fromJson static method
Implementation
static DiffEntity? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return DiffEntity(
offset: (json['offset'] as int?) ?? 0,
length: (json['length'] as int?) ?? 0,
type: DiffEntityType.fromJson(tdMapFromJson(json['type'])),
);
}