fromJson static method

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

Implementation

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

  return InlineQueryResultPhoto(
    id: (json['id'] as String?) ?? '',
    photo: Photo.fromJson(tdMapFromJson(json['photo'])),
    title: (json['title'] as String?) ?? '',
    description: (json['description'] as String?) ?? '',
  );
}