First designs for ui
This commit is contained in:
@@ -6,7 +6,7 @@ class CustomerListDto {
|
||||
final String customerNumber;
|
||||
final DateTime? lastUpdateDate;
|
||||
|
||||
CustomerListDto({required this.id, required this.name, required this.customerNumber, required this.lastUpdateDate});
|
||||
CustomerListDto({required this.id, required this.name, required this.customerNumber, this.lastUpdateDate});
|
||||
|
||||
/// Create from JSON response
|
||||
factory CustomerListDto.fromJson(Map<String, dynamic> json) {
|
||||
@@ -45,8 +45,10 @@ class PictureDto {
|
||||
final String image;
|
||||
final DateTime pictureDate;
|
||||
final String? username;
|
||||
final CustomerListDto customerListDto;
|
||||
|
||||
PictureDto({required this.id, required this.comment, required this.category, required this.image, required this.pictureDate, required this.username});
|
||||
PictureDto(
|
||||
{required this.id, required this.comment, required this.category, required this.image, required this.pictureDate, required this.username, required this.customerListDto});
|
||||
|
||||
/// Create from JSON response
|
||||
factory PictureDto.fromJson(Map<String, dynamic> json) {
|
||||
@@ -57,6 +59,7 @@ PictureDto({required this.id, required this.comment, required this.category, req
|
||||
image: json['image'] as String,
|
||||
pictureDate: DateTimeUtils.toDateTime(json['pictureDate']) ?? DateTime.now(),
|
||||
username: json['username'] as String?,
|
||||
customerListDto: CustomerListDto.fromJson(json['customer']),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user