Restores this instance from the given JSON object.
Edge fromJSON(Map<String,dynamic> json ) { from = json['from']; to = json['to']; cost = json['cost']; return this; }