toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['instance_id'] = this.instanceId;
  data['title'] = this.title;
  data['order'] = this.order;
  data['enabled'] = this.enabled;
  data['method_id'] = this.methodId;
  data['method_title'] = this.methodTitle;
  data['method_description'] = this.methodDescription;
  if (this.settings != null) {
    data['settings'] = this.settings!.toJson();
  }
  if (this.links != null) {
    data['_links'] = this.links!.toJson();
  }
  return data;
}