decode static method

CacheMessage decode(
  1. Object message
)

Implementation

static CacheMessage decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return CacheMessage(
    dataSource: pigeonMap['dataSource'] as String?,
    useCache: pigeonMap['useCache'] as bool?,
    maxCacheSize: pigeonMap['maxCacheSize'] as int?,
    maxFileSize: pigeonMap['maxFileSize'] as int?,
    cachePath: pigeonMap['cachePath'] as String?,
  );
}