toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'productTypes'] = this.productTypes;
json[r'prefillToken'] = this.prefillToken;
json[r'expiresInSeconds'] = this.expiresInSeconds;
json[r'maxUses'] = this.maxUses;
if (this.partnerPageUrl != null) {
json[r'partnerPageUrl'] = this.partnerPageUrl;
} else {
json[r'partnerPageUrl'] = null;
}
if (this.embedSnippet != null) {
json[r'embedSnippet'] = this.embedSnippet;
} else {
json[r'embedSnippet'] = null;
}
return json;
}