toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['handle'] = this.handle;
data['title'] = this.title;
data['updated_at'] = this.updatedAt;
data['body_html'] = this.bodyHtml;
data['published_at'] = this.publishedAt;
data['sort_order'] = this.sortOrder;
data['template_suffix'] = this.templateSuffix;
data['disjunctive'] = this.disjunctive;
if (this.rules != null) {
data['rules'] = this.rules!.map((v) => v.toJson()).toList();
}
data['published_scope'] = this.publishedScope;
data['admin_graphql_api_id'] = this.adminGraphqlApiId;
return data;
}