RewriteResponse.fromJson constructor

RewriteResponse.fromJson(
  1. Map json_
)

Implementation

RewriteResponse.fromJson(core.Map json_)
    : this(
        done: json_.containsKey('done') ? json_['done'] as core.bool : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        objectSize: json_.containsKey('objectSize')
            ? json_['objectSize'] as core.String
            : null,
        resource: json_.containsKey('resource')
            ? Object.fromJson(
                json_['resource'] as core.Map<core.String, core.dynamic>)
            : null,
        rewriteToken: json_.containsKey('rewriteToken')
            ? json_['rewriteToken'] as core.String
            : null,
        totalBytesRewritten: json_.containsKey('totalBytesRewritten')
            ? json_['totalBytesRewritten'] as core.String
            : null,
      );