File tree Expand file tree Collapse file tree
ground_control_client/lib/src/protocol Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /* AUTOMATICALLY GENERATED CODE DO NOT MODIFY */
2+ /* To generate run: "serverpod generate" */
3+
4+ // ignore_for_file: implementation_imports
5+ // ignore_for_file: library_private_types_in_public_api
6+ // ignore_for_file: non_constant_identifier_names
7+ // ignore_for_file: public_member_api_docs
8+ // ignore_for_file: type_literal_in_constant_pattern
9+ // ignore_for_file: use_super_parameters
10+ // ignore_for_file: invalid_use_of_internal_member
11+
12+ // ignore_for_file: no_leading_underscores_for_library_prefixes
13+ import 'package:serverpod_client/serverpod_client.dart' as _i1;
14+
15+ enum BillingMappingType implements _i1.SerializableModel {
16+ planId,
17+ subscriptionId,
18+ itemId,
19+ priceId;
20+
21+ static BillingMappingType fromJson (String name) {
22+ switch (name) {
23+ case 'planId' :
24+ return BillingMappingType .planId;
25+ case 'subscriptionId' :
26+ return BillingMappingType .subscriptionId;
27+ case 'itemId' :
28+ return BillingMappingType .itemId;
29+ case 'priceId' :
30+ return BillingMappingType .priceId;
31+ default :
32+ throw ArgumentError (
33+ 'Value "$name " cannot be converted to "BillingMappingType"' );
34+ }
35+ }
36+
37+ @override
38+ String toJson () => name;
39+
40+ @override
41+ String toString () => name;
42+ }
Original file line number Diff line number Diff line change 1+ /* AUTOMATICALLY GENERATED CODE DO NOT MODIFY */
2+ /* To generate run: "serverpod generate" */
3+
4+ // ignore_for_file: implementation_imports
5+ // ignore_for_file: library_private_types_in_public_api
6+ // ignore_for_file: non_constant_identifier_names
7+ // ignore_for_file: public_member_api_docs
8+ // ignore_for_file: type_literal_in_constant_pattern
9+ // ignore_for_file: use_super_parameters
10+ // ignore_for_file: invalid_use_of_internal_member
11+
12+ // ignore_for_file: no_leading_underscores_for_library_prefixes
13+ import 'package:serverpod_client/serverpod_client.dart' as _i1;
14+
15+ enum ProductType implements _i1.SerializableModel {
16+ plan,
17+ project,
18+ capsule,
19+ compute,
20+ database;
21+
22+ static ProductType fromJson (String name) {
23+ switch (name) {
24+ case 'plan' :
25+ return ProductType .plan;
26+ case 'project' :
27+ return ProductType .project;
28+ case 'capsule' :
29+ return ProductType .capsule;
30+ case 'compute' :
31+ return ProductType .compute;
32+ case 'database' :
33+ return ProductType .database;
34+ default :
35+ throw ArgumentError (
36+ 'Value "$name " cannot be converted to "ProductType"' );
37+ }
38+ }
39+
40+ @override
41+ String toJson () => name;
42+
43+ @override
44+ String toString () => name;
45+ }
You can’t perform that action at this time.
0 commit comments