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(json['title'] as Map<String, dynamic>?)!,
    description:
        FormattedText.fromJson(json['description'] as Map<String, dynamic>?)!,
    url: (json['url'] as String?) ?? '',
  );
}