class ProjectModel { String? groups; int id; String name; String? options; String orgCode; String projCode; ProjectModel( {this.groups, required this.id, required this.name, this.options, required this.orgCode, required this.projCode}); factory ProjectModel.fromJson(Map json) { return ProjectModel( groups: json['groups'], id: json['id'], name: json['name'], options: json['options'], orgCode: json['org_code'], projCode: json['proj_code']); } Map toJson() { return { 'groups': groups, 'id': id, 'name': name, 'options': options, 'org_code': orgCode, 'proj_code': projCode }; } }