fromJson static method

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

Implementation

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

  return DeepLinkInfo(
    text: FormattedText.fromJson(tdMapFromJson(json['text'])),
    needUpdateApplication:
        (json['need_update_application'] as bool?) ?? false,
  );
}