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.
32 lines
954 B
Dart
32 lines
954 B
Dart
import 'package:test_sa/models/lookup.dart';
|
|
|
|
class DemoAttachments {
|
|
int? id;
|
|
num? demoRequestId;
|
|
num? documentTypeId;
|
|
Lookup? documentType;
|
|
String? attachmentName;
|
|
String? originalName;
|
|
|
|
DemoAttachments({this.id, this.documentTypeId, this.documentType, this.attachmentName, this.demoRequestId, this.originalName});
|
|
|
|
DemoAttachments.fromJson(dynamic json) {
|
|
id = json['id'];
|
|
documentTypeId = json['documentTypeId'];
|
|
documentType = json['documentType'] != null ? Lookup.fromJson(json['documentType']) : null;
|
|
demoRequestId = json['demoRequestId'];
|
|
attachmentName = json['attachmentName'];
|
|
originalName = json['originalName'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final map = <String, dynamic>{};
|
|
map['id'] = id;
|
|
map['documentTypeId'] = documentTypeId;
|
|
map['attachmentName'] = attachmentName;
|
|
map['demoRequestId'] = demoRequestId;
|
|
map['originalName'] = originalName;
|
|
return map;
|
|
}
|
|
}
|