toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'key': key,
    if (webhook != null) 'webhook': webhook,
    if (trackId != null) 'track_id': trackId,
  };
}