toJson method

  1. @override
Map<String, Object?> toJson()

Implementation

@override
Map<String, Object?> toJson() => {
      "id": id,
      "type": type,
      "shipping": encodeValue(shipping),
    };