flutter_service/lib/model/CategoryResponse.dart

26 lines
359 B
Dart
Raw Normal View History

2021-03-01 22:16:41 +07:00
class CategoryResponse {
CategoryResponse({
this.id,
this.code,
this.name
});
int id;
String code;
String name;
Map<String,dynamic> config;
static CategoryResponse fromResponse(dynamic result){
return CategoryResponse(
id: int.parse(result["id"]),
code: result["code"],
name: result["name"]
);
}
}