Skip to content

getAthleteStats type 'double' is not a subtype of type 'int?' #116

@vitoramaral10

Description

@vitoramaral10

I/flutter (25741): Unhandled error: type 'double' is not a subtype of type 'int?'
I/flutter (25741): Unhandled error: #0 new ActivityTotal.fromJson (package:strava_client/src/domain/model/model_activity_stats.dart:130:26)
I/flutter (25741): #1 new ActivityStats.fromJson (package:strava_client/src/domain/model/model_activity_stats.dart:71:38)
I/flutter (25741): #2 RepositoryAthleteImpl.getAthleteStats. (package:strava_client/src/data/repository/repository_athlete_impl.dart:10:50)
I/flutter (25741): #3 ApiClient.getRequest.. (package:strava_client/src/data/repository/client.dart:37:63)
I/flutter (25741): #4 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:932:45)
I/flutter (25741): #5 Future._propagateToListeners (dart:async/future_impl.dart:961:13)
I/flutter (25741): #6 Future._completeWithValue (dart:async/future_impl.dart:712:5)
I/flutter (25741):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions