ResourceRequirements.fromJson constructor

ResourceRequirements.fromJson(
  1. Map json_
)

Implementation

ResourceRequirements.fromJson(core.Map json_)
    : this(
        limits: json_.containsKey('limits')
            ? (json_['limits'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        requests: json_.containsKey('requests')
            ? (json_['requests'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );