fromMap static method

ShakeFile fromMap(
  1. Map data
)

Converts map to object.

Implementation

static ShakeFile fromMap(Map data) {
  String path = data['path'] ?? '';
  String name = data['name'] ?? '';

  return ShakeFile.create(path, name);
}