AlertAction.fromJson constructor

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

Implementation

factory AlertAction.fromJson(Map<String, dynamic> json) => AlertAction(
      type: stringToEnum(json['type'], AlertActionType.values, AlertActionType.showContent),
      props: AlertProperties.fromJson(json['props']),
    );