BulkRestoreObjectsRequest.fromJson constructor

BulkRestoreObjectsRequest.fromJson(
  1. Map json_
)

Implementation

BulkRestoreObjectsRequest.fromJson(core.Map json_)
  : this(
      allowOverwrite: json_['allowOverwrite'] as core.bool?,
      copySourceAcl: json_['copySourceAcl'] as core.bool?,
      createdAfterTime: json_.containsKey('createdAfterTime')
          ? core.DateTime.parse(json_['createdAfterTime'] as core.String)
          : null,
      createdBeforeTime: json_.containsKey('createdBeforeTime')
          ? core.DateTime.parse(json_['createdBeforeTime'] as core.String)
          : null,
      matchGlobs: (json_['matchGlobs'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
      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,
    );