SharedStorageUrlWithMetadata.fromJson constructor

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

Implementation

factory SharedStorageUrlWithMetadata.fromJson(Map<String, dynamic> json) {
  return SharedStorageUrlWithMetadata(
    url: json['url'] as String,
    reportingMetadata: (json['reportingMetadata'] as List)
        .map((e) => SharedStorageReportingMetadata.fromJson(
            e as Map<String, dynamic>))
        .toList(),
  );
}