Skip to content

Commit

Permalink
feat(lib): override toString for Video object
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Mar 22, 2024
1 parent 868ee69 commit 569d137
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/src/types/video.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,10 @@ class Video {

/// Creates a json map from a [Video].
Map<String, dynamic> toJson() => _$VideoToJson(this);

/// Returns a string representation of this object.
@override
String toString() {
return 'Video{${toJson().toString()}';
}
}
6 changes: 6 additions & 0 deletions lib/src/types/video_assets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,10 @@ class VideoAssets {

/// Creates a json map from a [VideoAssets].
Map<String, dynamic> toJson() => _$VideoAssetsToJson(this);

/// Returns a string representation of this object.
@override
String toString() {
return 'VideoAssets{${toJson().toString()}';
}
}
6 changes: 6 additions & 0 deletions lib/src/types/video_source.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ class VideoSource {

/// Creates a json map from a [VideoSource].
Map<String, dynamic> toJson() => _$VideoSourceToJson(this);

/// Returns a string representation of this object.
@override
String toString() {
return 'VideoSource{${toJson().toString()}';
}
}

0 comments on commit 569d137

Please sign in to comment.