fromMap static method

SafDocumentFile fromMap(
  1. Map map
)

Implementation

static SafDocumentFile fromMap(Map<dynamic, dynamic> map) {
  return SafDocumentFile(
    uri: map['uri'] as String,
    name: map['name'] as String,
    isDir: map['isDir'] as bool? ?? false,
    length: map['length'] as int? ?? -1,
    lastModified: map['lastModified'] as int? ?? 0,
  );
}