ContextAttribute.fromJson constructor

ContextAttribute.fromJson(
  1. Map json_
)

Implementation

ContextAttribute.fromJson(core.Map json_)
    : this(
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        values: json_.containsKey('values')
            ? (json_['values'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );