toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['parent_id'] = this.parentId;
  data['name'] = this.name;
  if (this.locations != null) {
    data['locations'] = this.locations!.map((v) => v.toJson()).toList();
  }
  if (this.methods != null) {
    data['methods'] = this.methods!.toJson();
  }
  return data;
}