Attributes.fromJson constructor Null safety

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, item) => core.MapEntry(
                  key,
                  AttributeValue.fromJson(
                      item as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        droppedAttributesCount: _json.containsKey('droppedAttributesCount')
            ? _json['droppedAttributesCount'] as core.int
            : null,
      );