Map<String, dynamic> toJSON()

Returns a representation of this object as a JSON object.

Source

Map<String, dynamic> toJSON() {
  return <String, dynamic>{
    'inputType': inputType.toString(),
    'actionLabel': actionLabel,
  };
}