how to get the data from server using model in flutter code example Example 1: https requests flutter dependencies: http: ^0.12.2 Example 2: http flutter http: ^0.12.2