fromJson static method

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

Implementation

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

  return InlineQueryResultsButton(
    text: (json['text'] as String?) ?? '',
    type: InlineQueryResultsButtonType.fromJson(tdMapFromJson(json['type'])),
  );
}