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.
31 lines
729 B
Dart
31 lines
729 B
Dart
class AssetTransferAttachment {
|
|
AssetTransferAttachment({
|
|
this.id,
|
|
this.attachmentName,
|
|
});
|
|
|
|
AssetTransferAttachment.fromJson(dynamic json) {
|
|
id = json['id'];
|
|
attachmentName = json['attachmentName'];
|
|
}
|
|
|
|
num? id; // Now nullable
|
|
String? attachmentName; // Now nullable
|
|
|
|
AssetTransferAttachment copyWith({
|
|
num? id, // Parameter is now nullable
|
|
String? attachmentName, // Parameter is now nullable
|
|
}) =>
|
|
AssetTransferAttachment(
|
|
id: id ?? this.id,
|
|
attachmentName: attachmentName ?? this.attachmentName,
|
|
);
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final map = <String, dynamic>{};
|
|
map['id'] = id;
|
|
map['attachmentName'] = attachmentName;
|
|
return map;
|
|
}
|
|
}
|