fromJson static method

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

Implementation

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

  return InlineQueryResultDocument(
    id: (json['id'] as String?) ?? '',
    document: Document.fromJson(tdMapFromJson(json['document'])),
    title: (json['title'] as String?) ?? '',
    description: (json['description'] as String?) ?? '',
  );
}