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.
		
		
		
		
		
			
		
			
	
	
		
			28 lines
		
	
	
		
			467 B
		
	
	
	
		
			Dart
		
	
		
		
			
		
	
	
			28 lines
		
	
	
		
			467 B
		
	
	
	
		
			Dart
		
	
| 
								 
											2 years ago
										 
									 | 
							
								class Attachment {
							 | 
						||
| 
								 | 
							
								  Attachment({
							 | 
						||
| 
								 | 
							
								    this.id,
							 | 
						||
| 
								 | 
							
								    this.name,
							 | 
						||
| 
								 | 
							
								  });
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  Attachment.fromJson(dynamic json) {
							 | 
						||
| 
								 | 
							
								    id = json['id'];
							 | 
						||
| 
								 | 
							
								    name = json['name'];
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								  num id;
							 | 
						||
| 
								 | 
							
								  String name;
							 | 
						||
| 
								 | 
							
								  Attachment copyWith({
							 | 
						||
| 
								 | 
							
								    num id,
							 | 
						||
| 
								 | 
							
								    String name,
							 | 
						||
| 
								 | 
							
								  }) =>
							 | 
						||
| 
								 | 
							
								      Attachment(
							 | 
						||
| 
								 | 
							
								        id: id ?? this.id,
							 | 
						||
| 
								 | 
							
								        name: name ?? this.name,
							 | 
						||
| 
								 | 
							
								      );
							 | 
						||
| 
								 | 
							
								  Map<String, dynamic> toJson() {
							 | 
						||
| 
								 | 
							
								    final map = <String, dynamic>{};
							 | 
						||
| 
								 | 
							
								    map['id'] = id;
							 | 
						||
| 
								 | 
							
								    map['name'] = name;
							 | 
						||
| 
								 | 
							
								    return map;
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 |