UploadResult.from constructor

UploadResult.from(
  1. Map<String, dynamic> map
)

Implementation

UploadResult.from(Map<String, dynamic> map)
    : errs = List<String>.from(map['errFiles'] ?? []),
      success = ((map['succMap'] ?? {}) as Map<String, dynamic>)
          .entries
          .map((entry) => FileInfo(filename: entry.key, url: entry.value))
          .toList();