IndexInfo.fromJson constructor

IndexInfo.fromJson(
  1. Map json_
)

Implementation

IndexInfo.fromJson(core.Map json_)
    : this(
        category: json_.containsKey('category')
            ? json_['category'] as core.String
            : null,
        code: json_.containsKey('code') ? json_['code'] as core.String : null,
        color: json_.containsKey('color')
            ? Color.fromJson(
                json_['color'] as core.Map<core.String, core.dynamic>)
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        indexDescription: json_.containsKey('indexDescription')
            ? json_['indexDescription'] as core.String
            : null,
        value: json_.containsKey('value') ? json_['value'] as core.int : null,
      );