@@ -59,16 +59,16 @@ Map<String, dynamic> feedItemActionToJson(FeedItemAction action) {
5959/// {@endtemplate}
6060@JsonSerializable ()
6161class OpenInternalContent extends FeedItemAction {
62-
63- /// Factory method to create an [OpenInternalContent] instance from a JSON map.
64- factory OpenInternalContent .fromJson (Map <String , dynamic > json) =>
65- _$OpenInternalContentFromJson (json);
6662 /// {@macro open_internal_content}
6763 const OpenInternalContent ({
6864 required this .contentId,
6965 required this .contentType,
7066 }) : type = 'open_internal_content' ;
7167
68+ /// Factory method to create an [OpenInternalContent] instance from a JSON map.
69+ factory OpenInternalContent .fromJson (Map <String , dynamic > json) =>
70+ _$OpenInternalContentFromJson (json);
71+
7272 /// A string representation of the action type.
7373 @JsonKey (name: 'type' , required : true )
7474 final String type;
@@ -88,18 +88,18 @@ class OpenInternalContent extends FeedItemAction {
8888/// {@endtemplate}
8989@JsonSerializable ()
9090class ShowInterstitialThenOpenInternalContent extends FeedItemAction {
91+ /// {@macro show_interstitial_then_open_internal_content}
92+ const ShowInterstitialThenOpenInternalContent ({
93+ required this .contentId,
94+ required this .contentType,
95+ }) : type = 'show_interstitial_then_open_internal_content' ;
9196
9297 /// Factory method to create a [ShowInterstitialThenOpenInternalContent]
9398 /// instance from a JSON map.
9499 factory ShowInterstitialThenOpenInternalContent .fromJson (
95100 Map <String , dynamic > json,
96101 ) =>
97102 _$ShowInterstitialThenOpenInternalContentFromJson (json);
98- /// {@macro show_interstitial_then_open_internal_content}
99- const ShowInterstitialThenOpenInternalContent ({
100- required this .contentId,
101- required this .contentType,
102- }) : type = 'show_interstitial_then_open_internal_content' ;
103103
104104 /// A string representation of the action type.
105105 @JsonKey (name: 'type' , required : true )
@@ -121,12 +121,12 @@ class ShowInterstitialThenOpenInternalContent extends FeedItemAction {
121121/// {@endtemplate}
122122@JsonSerializable ()
123123class OpenExternalUrl extends FeedItemAction {
124+ /// {@macro open_external_url}
125+ const OpenExternalUrl ({required this .url}) : type = 'open_external_url' ;
124126
125127 /// Factory method to create an [OpenExternalUrl] instance from a JSON map.
126128 factory OpenExternalUrl .fromJson (Map <String , dynamic > json) =>
127129 _$OpenExternalUrlFromJson (json);
128- /// {@macro open_external_url}
129- const OpenExternalUrl ({required this .url}) : type = 'open_external_url' ;
130130
131131 /// A string representation of the action type.
132132 @JsonKey (name: 'type' , required : true )
0 commit comments