assetTypeListToJson function

List<String> assetTypeListToJson(
  1. List<AssetType>? assetType
)

Implementation

List<String> assetTypeListToJson(List<enums.AssetType>? assetType) {
  if (assetType == null) {
    return [];
  }

  return assetType.map((e) => enums.$AssetTypeMap[e]!).toList();
}