title: Add marker in Google Maps - Flutter
body: <p>I need to create some Marker in my app, I get the latitude and longitude by API. How can I will show these markers?</p>
  
  <p>My getPosts code:</p>
  
  <pre><code>Future&lt;List&lt;Orders&gt;&gt; getPosts() async {
  Response response = await http.get(url);
  //print(response.body);
  if(response.statusCode == 200){
    List&lt;dynamic&gt; body = jsonDecode(response.body);
    List&lt;Orders&gt; orders = body.map((dynamic item) =&gt; Orders.fromJson(item)).toList();
    return orders;
  } else {
    throw "Can't get orders";
  }
  </code></pre>
  
  <p>My class Order:</p>
  
  <pre><code>class Orders {
  
  final String id;
  final String nameRestaurant;
  final String address;
  final String lat;
  final String long;
  final bool delivered;
  final String orderId;
  final String phone;
  
  Orders({@required this.id, @required this.nameRestaurant, @required this.address, @required this.lat,
    @required this.long, @required this.delivered, @required this.orderId, @required this.phone});
  
  factory Orders.fromJson(Map&lt;dynamic, dynamic&gt; json){
    return Orders(
      id: json['id'] as String,
      nameRestaurant: json['nameRestaurant'] as String,
      address: json['address'] as String,
      lat: json['lat'] as String,
      long: json['long'] as String,
      delivered: json['delivered'] as bool,
      orderId: json['orderId'] as String,
      phone: json['phone'] as String
    );
   }
  }
  </code></pre>
  
  <p>I followed some tutorials but all of them add marker in onTap function but it don't works to me</p>