FileShareConfig.fromJson constructor

FileShareConfig.fromJson(
  1. Map json_
)

Implementation

FileShareConfig.fromJson(core.Map json_)
    : this(
        capacityGb: json_.containsKey('capacityGb')
            ? json_['capacityGb'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nfsExportOptions: json_.containsKey('nfsExportOptions')
            ? (json_['nfsExportOptions'] as core.List)
                .map((value) => NfsExportOptions.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sourceBackup: json_.containsKey('sourceBackup')
            ? json_['sourceBackup'] as core.String
            : null,
      );