fromJson static method
Creates a object from a json
Implementation
static Game fromJson(Map<String, dynamic> json) {
return Game(
title: json['title']!,
description: json['description']!,
photo: PhotoSize.listFromJsonArray(json['photo']!),
text: json['text'],
textEntities: callIfNotNull(
MessageEntity.listFromJsonArray,
json['text_entities'],
),
animation: callIfNotNull(
Animation.fromJson,
json['animation'],
),
);
}