fromJson static method

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

Implementation

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

  return SuggestedActionCustom(
    name: (json['name'] as String?) ?? '',
    title: FormattedText.fromJson(tdMapFromJson(json['title'])),
    description: FormattedText.fromJson(tdMapFromJson(json['description'])),
    url: (json['url'] as String?) ?? '',
  );
}