-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from TeamDaitda/feature/서버-연동
Feature/서버 연동
- Loading branch information
Showing
18 changed files
with
515 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import 'dart:convert'; | ||
|
||
ImageFindByUserIdDto imageFindByUserIdDtoFromJson(String str) => | ||
ImageFindByUserIdDto.fromJson(json.decode(str)); | ||
|
||
String imageFindByUserIdDtoToJson(ImageFindByUserIdDto data) => | ||
json.encode(data.toJson()); | ||
|
||
class ImageFindByUserIdDto { | ||
ImageFindByUserIdDto({ | ||
this.id, | ||
this.path, | ||
this.users, | ||
}); | ||
|
||
int id; | ||
String path; | ||
Users users; | ||
|
||
factory ImageFindByUserIdDto.fromJson(Map<String, dynamic> json) => | ||
ImageFindByUserIdDto( | ||
id: json["id"], | ||
path: json["path"], | ||
users: Users.fromJson(json["users"]), | ||
); | ||
|
||
Map<String, dynamic> toJson() => { | ||
"id": id, | ||
"path": path, | ||
"users": users.toJson(), | ||
}; | ||
} | ||
|
||
class Users { | ||
Users({ | ||
this.createDate, | ||
this.modifiedDate, | ||
this.id, | ||
this.name, | ||
this.affiliation, | ||
this.phone, | ||
this.category, | ||
}); | ||
|
||
dynamic createDate; | ||
dynamic modifiedDate; | ||
int id; | ||
String name; | ||
String affiliation; | ||
String phone; | ||
int category; | ||
|
||
factory Users.fromJson(Map<String, dynamic> json) => Users( | ||
createDate: json["createDate"], | ||
modifiedDate: json["modifiedDate"], | ||
id: json["id"], | ||
name: json["name"], | ||
affiliation: json["affiliation"], | ||
phone: json["phone"], | ||
category: json["category"], | ||
); | ||
|
||
Map<String, dynamic> toJson() => { | ||
"createDate": createDate, | ||
"modifiedDate": modifiedDate, | ||
"id": id, | ||
"name": name, | ||
"affiliation": affiliation, | ||
"phone": phone, | ||
"category": category, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import 'dart:convert'; | ||
|
||
UserGetAllDto userGetAllDtoFromJson(String str) => | ||
UserGetAllDto.fromJson(json.decode(str)); | ||
|
||
String userGetAllDtoToJson(UserGetAllDto data) => json.encode(data.toJson()); | ||
|
||
class UserGetAllDto { | ||
UserGetAllDto({ | ||
this.result, | ||
}); | ||
|
||
List<Result> result; | ||
|
||
factory UserGetAllDto.fromJson(Map<String, dynamic> json) => UserGetAllDto( | ||
result: | ||
List<Result>.from(json["result"].map((x) => Result.fromJson(x))), | ||
); | ||
|
||
Map<String, dynamic> toJson() => { | ||
"result": List<dynamic>.from(result.map((x) => x.toJson())), | ||
}; | ||
} | ||
|
||
class Result { | ||
Result({ | ||
this.id, | ||
this.name, | ||
this.affiliation, | ||
this.phone, | ||
this.category, | ||
}); | ||
|
||
int id; | ||
String name; | ||
String affiliation; | ||
String phone; | ||
int category; | ||
|
||
factory Result.fromJson(Map<String, dynamic> json) => Result( | ||
id: json["id"], | ||
name: json["name"], | ||
affiliation: json["affiliation"], | ||
phone: json["phone"], | ||
category: json["category"], | ||
); | ||
|
||
Map<String, dynamic> toJson() => { | ||
"id": id, | ||
"name": name, | ||
"affiliation": affiliation, | ||
"phone": phone, | ||
"category": category, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import 'dart:convert'; | ||
|
||
UserGetDto userGetDtoFromJson(String str) => | ||
UserGetDto.fromJson(json.decode(str)); | ||
|
||
String userGetDtoToJson(UserGetDto data) => json.encode(data.toJson()); | ||
|
||
class UserGetDto { | ||
UserGetDto({ | ||
this.id, | ||
this.name, | ||
this.affiliation, | ||
this.phone, | ||
this.category, | ||
}); | ||
|
||
int id; | ||
String name; | ||
String affiliation; | ||
String phone; | ||
int category; | ||
|
||
factory UserGetDto.fromJson(Map<String, dynamic> json) => UserGetDto( | ||
id: json["id"], | ||
name: json["name"], | ||
affiliation: json["affiliation"], | ||
phone: json["phone"], | ||
category: json["category"], | ||
); | ||
|
||
Map<String, dynamic> toJson() => { | ||
"id": id, | ||
"name": name, | ||
"affiliation": affiliation, | ||
"phone": phone, | ||
"category": category, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.