BucketFileSystemLocator.fromJson constructor

BucketFileSystemLocator.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory BucketFileSystemLocator.fromJson(Map<String, dynamic> json) {
  return BucketFileSystemLocator(
    storageKey: storage.SerializedStorageKey.fromJson(
      json['storageKey'] as String,
    ),
    bucketName: json.containsKey('bucketName')
        ? json['bucketName'] as String
        : null,
    pathComponents: (json['pathComponents'] as List)
        .map((e) => e as String)
        .toList(),
  );
}