Creates Map from Class Object
Map
Map<String, dynamic> toJson() => { 'types': types .map((PortableTypeV14 value) => value.toJson()) .toList(growable: false), };