Skip to content

Commit

Permalink
fix :: null 파싱 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoochanhong committed Apr 23, 2024
1 parent a710aaa commit eef5f9a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/data/laundry/dto/response/laundry_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,18 @@ class LaundryResponse {
final int id;
final int state;
final String deviceType;
final String onTime;
final String offTime;

const LaundryResponse({
required this.id,
required this.state,
required this.deviceType,
required this.onTime,
required this.offTime,
});

factory LaundryResponse.fromJson(Map<String, dynamic> json) {
return LaundryResponse(
id: json['id'],
state: json['state'],
deviceType: json['device_type'],
onTime: json['ON_time'],
offTime: json['OFF_time'],
);
}

Expand Down

0 comments on commit eef5f9a

Please sign in to comment.