genExport method
genExport
Implementation
@override
String genExport(String exportString, Set<PropertyInfo> propertySet,
Set<ConvertInfo> convertSet) {
String include = '';
for (var propertyInfo in propertySet) {
if (include.isNotEmpty) {
include += ',';
}
include += "'${propertyInfo.propertyName}'";
}
if (include.isNotEmpty) {
include = 'includes: {$include},';
}
if (exportString.isNotEmpty) {
return '''
@override
Map<String, dynamic> \$export() {
var map = super.\$export();
\$data.export($include target: map);
return map;
}
''';
}
return '';
}