Skip to content

Commit 814fd34

Browse files
committed
feat(lib): override toString for Video object
1 parent f0e2efa commit 814fd34

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

lib/src/types/video.dart

+6
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,10 @@ class Video {
7272

7373
/// Creates a json map from a [Video].
7474
Map<String, dynamic> toJson() => _$VideoToJson(this);
75+
76+
/// Returns a string representation of this object.
77+
@override
78+
String toString() {
79+
return 'Video{${toJson().toString()}';
80+
}
7581
}

lib/src/types/video_assets.dart

+6
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,10 @@ class VideoAssets {
2929

3030
/// Creates a json map from a [VideoAssets].
3131
Map<String, dynamic> toJson() => _$VideoAssetsToJson(this);
32+
33+
/// Returns a string representation of this object.
34+
@override
35+
String toString() {
36+
return 'VideoAssets{${toJson().toString()}';
37+
}
3238
}

lib/src/types/video_source.dart

+6
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@ class VideoSource {
2222

2323
/// Creates a json map from a [VideoSource].
2424
Map<String, dynamic> toJson() => _$VideoSourceToJson(this);
25+
26+
/// Returns a string representation of this object.
27+
@override
28+
String toString() {
29+
return 'VideoSource{${toJson().toString()}';
30+
}
2531
}

0 commit comments

Comments
 (0)