toJson method
Implementation
@visibleForTesting
Map<String, dynamic> toJson() => {
"data": _bytesToBase64(data),
"friendlyName": friendlyName,
"attributes": attributes.map((e) => e.toJson()).toList(),
}.clearNulls();
@visibleForTesting
Map<String, dynamic> toJson() => {
"data": _bytesToBase64(data),
"friendlyName": friendlyName,
"attributes": attributes.map((e) => e.toJson()).toList(),
}.clearNulls();