Animations.fromJson constructor

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

Parses a Animations from TDLib JSON.

Implementation

factory Animations.fromJson(Map<String, dynamic> json) => Animations(
  animations: _readList<Animation>(
    json['animations'],
    (e) => _readObject(e, Animation.fromJson),
  ),
  extra: json['@extra'],
  clientId: _readClientId(json['@client_id']),
);