Skip to content

Commit 229e5c6

Browse files
committed
Miscellaneous fixes
1 parent 56dda96 commit 229e5c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/src/transformers/utils/property_value_delegate.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -805,22 +805,22 @@ List<Accessor> getApiResponseAccessorsForType(VariableType dataType) => [
805805
Accessor(
806806
name: 'isLoading',
807807
type: VariableType.boolean,
808-
getValue: (value) => (value.toMap()?['isLoading'] as Object?).toBool(),
808+
getValue: (value) => (value.toMap()?['isLoading']).toBool(),
809809
),
810810
Accessor(
811811
name: 'isError',
812812
type: VariableType.boolean,
813-
getValue: (value) => (value.toMap()?['isError'] as Object?).toBool(),
813+
getValue: (value) => (value.toMap()?['isError']).toBool(),
814814
),
815815
Accessor(
816816
name: 'isSuccess',
817817
type: VariableType.boolean,
818-
getValue: (value) => (value.toMap()?['isSuccess'] as Object?).toBool(),
818+
getValue: (value) => (value.toMap()?['isSuccess']).toBool(),
819819
),
820820
Accessor(
821821
name: 'hasData',
822822
type: VariableType.boolean,
823-
getValue: (value) => (value.toMap()?['hasData'] as Object?).toBool(),
823+
getValue: (value) => (value.toMap()?['hasData']).toBool(),
824824
),
825825
Accessor(
826826
name: 'data',

0 commit comments

Comments
 (0)