File tree 1 file changed +4
-4
lines changed
lib/src/transformers/utils
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -805,22 +805,22 @@ List<Accessor> getApiResponseAccessorsForType(VariableType dataType) => [
805
805
Accessor (
806
806
name: 'isLoading' ,
807
807
type: VariableType .boolean,
808
- getValue: (value) => (value.toMap ()? ['isLoading' ] as Object ? ).toBool (),
808
+ getValue: (value) => (value.toMap ()? ['isLoading' ]).toBool (),
809
809
),
810
810
Accessor (
811
811
name: 'isError' ,
812
812
type: VariableType .boolean,
813
- getValue: (value) => (value.toMap ()? ['isError' ] as Object ? ).toBool (),
813
+ getValue: (value) => (value.toMap ()? ['isError' ]).toBool (),
814
814
),
815
815
Accessor (
816
816
name: 'isSuccess' ,
817
817
type: VariableType .boolean,
818
- getValue: (value) => (value.toMap ()? ['isSuccess' ] as Object ? ).toBool (),
818
+ getValue: (value) => (value.toMap ()? ['isSuccess' ]).toBool (),
819
819
),
820
820
Accessor (
821
821
name: 'hasData' ,
822
822
type: VariableType .boolean,
823
- getValue: (value) => (value.toMap ()? ['hasData' ] as Object ? ).toBool (),
823
+ getValue: (value) => (value.toMap ()? ['hasData' ]).toBool (),
824
824
),
825
825
Accessor (
826
826
name: 'data' ,
You can’t perform that action at this time.
0 commit comments