fromJson static method

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

Implementation

static InlineQueryResultVideo? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return InlineQueryResultVideo(
    id: (json['id'] as String?) ?? '',
    video: Video.fromJson(tdMapFromJson(json['video'])),
    title: (json['title'] as String?) ?? '',
    description: (json['description'] as String?) ?? '',
  );
}