toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.viewed != null) {
json[r'viewed'] = this.viewed;
} else {
json[r'viewed'] = null;
}
if (this.optedOut != null) {
json[r'optedOut'] = this.optedOut;
} else {
json[r'optedOut'] = null;
}
return json;
}