You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudsolutions-atoms/lib/models/asset/supplier.dart

28 lines
537 B
Dart

class Supplier {
Supplier({
this.id,
this.suppliername,
});
Supplier.fromJson(dynamic json) {
id = json['id'];
suppliername = json['suppliername'];
}
num id;
String suppliername;
Supplier copyWith({
num id,
String suppliername,
}) =>
Supplier(
id: id ?? this.id,
suppliername: suppliername ?? this.suppliername,
);
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = id;
map['suppliername'] = suppliername;
return map;
}
}