Map<String, Object?> toJson() { var features = this.features; final json = <String, Object?>{}; json[r'features'] = features.map((i) => i.toJson()).toList(); return json; }