mirror of
https://github.com/Iconica-Development/flutter_google_track_and_trace.git
synced 2025-05-19 13:13:44 +02:00
fix: use correct json conversion on google map theme
This commit is contained in:
parent
cc986442e2
commit
d2e2a80566
1 changed files with 1 additions and 8 deletions
|
@ -24,14 +24,7 @@ class GoogleTrackTraceMapTheme {
|
|||
final List<GoogleMapThemeFeature> themes;
|
||||
|
||||
String getJson() {
|
||||
var sb = StringBuffer('[');
|
||||
for (var property in themes) {
|
||||
sb
|
||||
..write(jsonEncode(property.toJson()))
|
||||
..write(',');
|
||||
}
|
||||
sb.write(']');
|
||||
return sb.toString();
|
||||
return jsonEncode(themes.map((e) => e.toJson()).toList());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue