added rog local data
This commit is contained in:
47
lib/model/rog.dart
Normal file
47
lib/model/rog.dart
Normal file
@ -0,0 +1,47 @@
|
||||
class Rog {
|
||||
int? id;
|
||||
String? team_name;
|
||||
String? event_code;
|
||||
int? user_id;
|
||||
int? cp_number;
|
||||
int? checkintime;
|
||||
String? image;
|
||||
int? rog_action_type;
|
||||
|
||||
Rog({
|
||||
this.id,
|
||||
this.team_name,
|
||||
this.event_code,
|
||||
this.user_id,
|
||||
this.cp_number,
|
||||
this.checkintime,
|
||||
this.image,
|
||||
this.rog_action_type
|
||||
});
|
||||
|
||||
factory Rog.fromMap(Map<String, dynamic> json){
|
||||
return Rog(
|
||||
id: json['id'],
|
||||
team_name: json['team_name'],
|
||||
event_code: json['event_code'],
|
||||
user_id: json['user_id'],
|
||||
cp_number: json['cp_number'],
|
||||
checkintime: json['checkintime'],
|
||||
image: json['image'],
|
||||
rog_action_type: json['rog_action_type']
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toMap(){
|
||||
return {
|
||||
'id': id,
|
||||
'team_name' : team_name,
|
||||
'event_code': event_code,
|
||||
'user_id': user_id,
|
||||
'cp_number': cp_number,
|
||||
'checkintime': checkintime,
|
||||
'image': image,
|
||||
'rog_action_type': rog_action_type
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user