Attributes.fromJson constructor

Attributes.fromJson(
  1. Map json_
)

Implementation

Attributes.fromJson(core.Map json_)
    : this(
        attributeMap: json_.containsKey('attributeMap')
            ? (json_['attributeMap'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  AttributeValue.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        droppedAttributesCount: json_.containsKey('droppedAttributesCount')
            ? json_['droppedAttributesCount'] as core.int
            : null,
      );