StackPack.fromJson constructor

StackPack.fromJson(
  1. Map json_
)

Implementation

StackPack.fromJson(core.Map json_)
    : this(
        descriptions: json_.containsKey('descriptions')
            ? (json_['descriptions'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        iconDataURL: json_.containsKey('iconDataURL')
            ? json_['iconDataURL'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );