Label.fromJson constructor

Label.fromJson(
  1. Map json_
)

Implementation

Label.fromJson(core.Map json_)
    : this(
        color: json_.containsKey('color')
            ? LabelColor.fromJson(
                json_['color'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        labelListVisibility: json_.containsKey('labelListVisibility')
            ? json_['labelListVisibility'] as core.String
            : null,
        messageListVisibility: json_.containsKey('messageListVisibility')
            ? json_['messageListVisibility'] as core.String
            : null,
        messagesTotal: json_.containsKey('messagesTotal')
            ? json_['messagesTotal'] as core.int
            : null,
        messagesUnread: json_.containsKey('messagesUnread')
            ? json_['messagesUnread'] as core.int
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        threadsTotal: json_.containsKey('threadsTotal')
            ? json_['threadsTotal'] as core.int
            : null,
        threadsUnread: json_.containsKey('threadsUnread')
            ? json_['threadsUnread'] as core.int
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );