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.
26 lines
685 B
Dart
26 lines
685 B
Dart
import 'dart:io';
|
|
|
|
class GenericAttachmentModel {
|
|
GenericAttachmentModel({this.id, this.name,this.originalName,this.createdBy});
|
|
|
|
int? id;
|
|
String? name;
|
|
String ?createdBy;
|
|
String? originalName;
|
|
GenericAttachmentModel.fromJson(Map<String, dynamic> json) {
|
|
print('created by here is ${json['createdBy']}');
|
|
id = json['id'];
|
|
name = json['name'];
|
|
createdBy = json['createdBy'];
|
|
originalName = json['originalName'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = <String, dynamic>{};
|
|
data['id'] = id;
|
|
data['name'] = name;
|
|
data['createdBy'] = createdBy;
|
|
data['originalName'] = originalName;
|
|
return data;
|
|
}
|
|
} |