Skip to content

Commit cf1c1a4

Browse files
author
serverpod_cloud
committed
feat(gc): 66998dfa5c320212be52e684df8e6bd6f19be0df
1 parent 26c53d5 commit cf1c1a4

3 files changed

Lines changed: 547 additions & 434 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
}

0 commit comments

Comments
 (0)