GoogleApiHttpBody.fromJson constructor

GoogleApiHttpBody.fromJson(
  1. Map _json
)

Implementation

GoogleApiHttpBody.fromJson(core.Map _json)
    : this(
        contentType: _json.containsKey('contentType')
            ? _json['contentType'] as core.String
            : null,
        data: _json.containsKey('data') ? _json['data'] as core.String : null,
        extensions: _json.containsKey('extensions')
            ? (_json['extensions'] as core.List)
                .map<core.Map<core.String, core.Object>>((value) =>
                    (value as core.Map<core.String, core.dynamic>).map(
                      (key, item) => core.MapEntry(
                        key,
                        item as core.Object,
                      ),
                    ))
                .toList()
            : null,
      );