SharedStorageMetadata.fromJson constructor

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

Implementation

factory SharedStorageMetadata.fromJson(Map<String, dynamic> json) {
  return SharedStorageMetadata(
    creationTime:
        network.TimeSinceEpoch.fromJson(json['creationTime'] as num),
    length: json['length'] as int,
    remainingBudget: json['remainingBudget'] as num,
  );
}