InternalLinkTypeMessageDraft.fromJson constructor

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

Parse from a json

Implementation

factory InternalLinkTypeMessageDraft.fromJson(Map<String, dynamic> json) =>
    InternalLinkTypeMessageDraft(
      text: FormattedText.fromJson(json['text']),
      containsLink: json['contains_link'],
      extra: json['@extra'],
      clientId: json['@client_id'],
    );