toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    "allowCancel": allowCancel,
    "allowResubmit": allowResubmit,
    "autoTrigger": autoTrigger,
    "isDisabled": isDisabled,
    "canRetry": canRetry,
    "canTrigger": canTrigger,
    "id": id,
    "state": state.toMap(),
    "type": type,
    "withHaptics": withHaptics,
    "debugLabel": debugLabel,
  };
}