toJson method

Map<String, dynamic> toJson ()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  if (this.embeddable != null) {
    data['embeddable'] = this.embeddable;
  }
  if (this.postType != null) {
    data['post_type'] = this.postType;
  }
  if (this.href != null) {
    data['href'] = this.href;
  }
  return data;
}