toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'name': name,
'description': description,
'allowNoCredit': allowNoCredit,
'allowCommercialUse': allowCommercialUse,
'allowDerivatives': allowDerivatives,
'allowDifferentLicense': allowDifferentLicense,
'type': type,
'minor': minor,
'poi': poi,
'nsfw': nsfw,
'nsfwLevel': nsfwLevel,
'tags': tags,
'mode': mode,
'creator': creator?.toJson(),
'stats': stats?.toJson(),
'modelVersions': modelVersions.map((e) => e.toJson()).toList(),
};
}