mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-05-08 16:24:36 +00:00
28 lines
721 B
Dart
28 lines
721 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'recommendation_seeds.freezed.dart';
|
|
part 'recommendation_seeds.g.dart';
|
|
|
|
@freezed
|
|
class RecommendationSeeds with _$RecommendationSeeds {
|
|
factory RecommendationSeeds(
|
|
num? acousticness,
|
|
num? danceability,
|
|
@JsonKey(name: "duration_ms") num? durationMs,
|
|
num? energy,
|
|
num? instrumentalness,
|
|
num? key,
|
|
num? liveness,
|
|
num? loudness,
|
|
num? mode,
|
|
num? popularity,
|
|
num? speechiness,
|
|
num? tempo,
|
|
@JsonKey(name: "time_signature") num? timeSignature,
|
|
num? valence,
|
|
) = _RecommendationSeeds;
|
|
|
|
factory RecommendationSeeds.fromJson(Map<String, dynamic> json) =>
|
|
_$RecommendationSeedsFromJson(json);
|
|
}
|