StorageConnector.fromJson constructor

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

Implementation

factory StorageConnector.fromJson(Map<String, dynamic> json) {
  return StorageConnector(
    connectorType: (json['ConnectorType'] as String).toStorageConnectorType(),
    domains: (json['Domains'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    resourceIdentifier: json['ResourceIdentifier'] as String?,
  );
}