BaiduMd5.fromMap constructor

BaiduMd5.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory BaiduMd5.fromMap(Map<String, dynamic> map) {
  final instance = BaiduMd5(
    filePath: map['filePath'],
    memberLevel: map['memberLevel'],
  );
  instance._blockMd5List =
      (map['blockMd5List'] as List).whereType<String>().toList();
  instance._contentMd5 = map['contentMd5'];
  instance._sliceMd5 = map['sliceMd5'];
  return instance;
}