toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "self": List<dynamic>.from(self!.map((x) => x.toJson())),
      "collection": List<dynamic>.from(collection!.map((x) => x.toJson())),
      "customer": List<dynamic>.from(customer!.map((x) => x.toJson())),
    };