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/generic_attachment_model.dart

30 lines
727 B
Dart

6 months ago
import 'dart:io';
import 'package:test_sa/models/lookup.dart';
6 months ago
class GenericAttachmentModel {
GenericAttachmentModel({this.id, this.name, this.originalName, this.createdBy,this.documentTypeId});
6 months ago
int? id;
String? name;
String? createdBy;
6 months ago
String? originalName;
Lookup? documentTypeId;
6 months ago
GenericAttachmentModel.fromJson(Map<String, dynamic> json) {
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;
}
}