toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['id'] = this.id;
  data['title'] = this.title;
  data['description'] = this.description;
  data['order'] = this.order;
  data['enabled'] = this.enabled;
  data['method_title'] = this.methodTitle;
  data['method_description'] = this.methodDescription;
  data['method_supports'] = this.methodSupports;
  if (this.settings != null) {
    data['settings'] = this.settings!.toJson();
  }
  if (this.lLinks != null) {
    data['_links'] = this.lLinks!.toJson();
  }
  return data;
}