feat: update print
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:enaklo_pos/data/type/bussines_type.dart';
|
||||
|
||||
class OutletResponse {
|
||||
final bool? success;
|
||||
final OutletData? data;
|
||||
@@ -101,7 +103,7 @@ class Outlet {
|
||||
final String? name;
|
||||
final String? address;
|
||||
final String? phoneNumber;
|
||||
final String? businessType;
|
||||
final BusinessType? businessType;
|
||||
final String? currency;
|
||||
final int? taxRate;
|
||||
final bool? isActive;
|
||||
@@ -128,7 +130,7 @@ class Outlet {
|
||||
name: json["name"],
|
||||
address: json["address"],
|
||||
phoneNumber: json["phone_number"],
|
||||
businessType: json["business_type"],
|
||||
businessType: BusinessType.fromString(json["business_type"]),
|
||||
currency: json["currency"],
|
||||
taxRate: json["tax_rate"],
|
||||
isActive: json["is_active"],
|
||||
@@ -146,7 +148,7 @@ class Outlet {
|
||||
"name": name,
|
||||
"address": address,
|
||||
"phone_number": phoneNumber,
|
||||
"business_type": businessType,
|
||||
"business_type": businessType?.value,
|
||||
"currency": currency,
|
||||
"tax_rate": taxRate,
|
||||
"is_active": isActive,
|
||||
|
||||
Reference in New Issue
Block a user