toJson method
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'source': _sourceToJson(source),
'installedAt': installedAt.toIso8601String(),
'sizeBytes': sizeBytes,
'type': type.toString(),
'hasLoraWeights': hasLoraWeights,
};