UpdateSuggestedActions.fromJson constructor

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

Parse from a json

Implementation

factory UpdateSuggestedActions.fromJson(Map<String, dynamic> json) => UpdateSuggestedActions(
  addedActions: List<SuggestedAction>.from((json['added_actions'] ?? []).map((item) => SuggestedAction.fromJson(item)).toList()),
  removedActions: List<SuggestedAction>.from((json['removed_actions'] ?? []).map((item) => SuggestedAction.fromJson(item)).toList()),
  extra: json['@extra'],
  clientId: json['@client_id'],
);