toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      if (onClick != null) 'onClick': onClick!.toJson(),
      if (onLoad != null) 'onLoad': onLoad!.toJson(),
      if (onSuccess != null) 'onSuccess': onSuccess!.toJson(),
      if (onError != null) 'onError': onError!.toJson(),
      if (customJs != null) 'custom': customJs,
    };