BulkRestoreObjectsRequest.fromJson constructor

BulkRestoreObjectsRequest.fromJson(
  1. Map json_
)

Implementation

BulkRestoreObjectsRequest.fromJson(core.Map json_)
    : this(
        allowOverwrite: json_.containsKey('allowOverwrite')
            ? json_['allowOverwrite'] as core.bool
            : null,
        copySourceAcl: json_.containsKey('copySourceAcl')
            ? json_['copySourceAcl'] as core.bool
            : null,
        matchGlobs: json_.containsKey('matchGlobs')
            ? (json_['matchGlobs'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        softDeletedAfterTime: json_.containsKey('softDeletedAfterTime')
            ? core.DateTime.parse(
                json_['softDeletedAfterTime'] as core.String)
            : null,
        softDeletedBeforeTime: json_.containsKey('softDeletedBeforeTime')
            ? core.DateTime.parse(
                json_['softDeletedBeforeTime'] as core.String)
            : null,
      );