SuggestedActionCustom.fromJson constructor

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

Parses a SuggestedActionCustom from TDLib JSON.

Implementation

factory SuggestedActionCustom.fromJson(Map<String, dynamic> json) =>
    SuggestedActionCustom(
      name: _readString(json['name']),
      title: _readObject(json['title'], FormattedText.fromJson),
      description: _readObject(json['description'], FormattedText.fromJson),
      url: _readString(json['url']),
    );