joshuadeguzman / joshuadeguzman/freelancer-sdk-flutter

Add the Countries model

Open
#2 1 comment 0 reactions 0 assignees View on GitHub
flutter good first issue hacktoberfest
Dominant language
Dart
Stars
7
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Models to add
- [ ] `Countries` (https://developer.freelancer.com/docs/common/countries)

Please see how models are implemented in the SDK:
https://github.com/joshuadeguzman/freelancer-sdk-flutter/blob/master/lib/models/fl_currency.dart

Use the json_to_dart tool to keep the consistency between models:
https://javiercbk.github.io/json_to_dart/

> NOTE: There are `null` data values from the API. Ensure to add the explicit data types of each property, and don't leave it as `Null` after using the json_to_dart. [This](https://github.com/joshuadeguzman/freelancer-sdk-flutter/blob/master/lib/models/fl_upgrades.dart) is an example of an incomplete model, and will be updated soon as part of the roadmap.

Contributor guide

No contributing guide indexed for this repository

Research direction

Review lib/models/fl_currency.dart for the SDK's model structure and consult the Countries API documentation linked in the issue. Use json_to_dart as suggested, ensuring nullable API values receive explicit data types rather than Null. Done means a Countries model is added consistently with the other SDK models.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.