Converts map to object.
static ShakeFile fromMap(Map data) { String path = data['path'] ?? ''; String name = data['name'] ?? ''; return ShakeFile.create(path, name); }