first commit
This commit is contained in:
		
						commit
						faf67cc6d8
					
				
					 148 changed files with 6580 additions and 0 deletions
				
			
		
							
								
								
									
										22
									
								
								lib/domain/models/owner.dart
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								lib/domain/models/owner.dart
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,22 @@ | |||
| import 'package:flutter/material.dart'; | ||||
| 
 | ||||
| class Owner extends ChangeNotifier { | ||||
|   Owner({ | ||||
|     required this.firstName, | ||||
|     required this.lastName, | ||||
|     required this.contact, | ||||
|     required this.id, | ||||
|   }); | ||||
| 
 | ||||
|   String firstName; | ||||
|   String lastName; | ||||
|   String contact; | ||||
|   int id; | ||||
| 
 | ||||
|   factory Owner.fromJSON(Map<String, dynamic> json) => Owner( | ||||
|     contact: json["contact"], | ||||
|     firstName: json["first_name"], | ||||
|     lastName: json["last_name"], | ||||
|     id: json["id"], | ||||
|   ); | ||||
| } | ||||
		Reference in a new issue