toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'name': name,
    if (sysex != null) 'sysex': sysex,
    if (userVisibleOnly != null) 'userVisibleOnly': userVisibleOnly,
    if (allowWithoutSanitization != null)
      'allowWithoutSanitization': allowWithoutSanitization,
    if (panTiltZoom != null) 'panTiltZoom': panTiltZoom,
  };
}