feat:额外收费
This commit is contained in:
1 parent
2b956342f4
commit
e730b6923c
17 files changed
+461
-153
No files matched your search
@@ -56,4 +56,22 @@ abstract class JsonTool {
|
||||
if (value == null) return null;
|
||||
return value.toString();
|
||||
}
|
||||
|
||||
static DiscountsType? stringToDiscountsType(String? value) {
|
||||
return DiscountsType.values.fromCode(value);
|
||||
}
|
||||
|
||||
static String? discountsTypeToString(DiscountsType? value) {
|
||||
if (value == null) return null;
|
||||
return value.toString();
|
||||
}
|
||||
|
||||
static ProductHourType? stringToProductHourType(String? value) {
|
||||
return ProductHourType.values.fromCode(value);
|
||||
}
|
||||
|
||||
static String? productHourTypeToString(ProductHourType? value) {
|
||||
if (value == null) return null;
|
||||
return value.toString();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user