Skip to content

Instantly share code, notes, and snippets.

@dafinoer
Created October 11, 2021 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dafinoer/752f0d638457840a9956e090d4c2cdf3 to your computer and use it in GitHub Desktop.
Save dafinoer/752f0d638457840a9956e090d4c2cdf3 to your computer and use it in GitHub Desktop.
@freezed
class Playback with _$Playback {
factory Playback({
required String policy,
required String id,
}) = _Playback;
factory Playback.fromJson(Map<String, dynamic> data) =>
_$PlaybackFromJson(data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment