toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (color != null) 'color': color!,
      if (id != null) 'id': id!,
      if (labelListVisibility != null)
        'labelListVisibility': labelListVisibility!,
      if (messageListVisibility != null)
        'messageListVisibility': messageListVisibility!,
      if (messagesTotal != null) 'messagesTotal': messagesTotal!,
      if (messagesUnread != null) 'messagesUnread': messagesUnread!,
      if (name != null) 'name': name!,
      if (threadsTotal != null) 'threadsTotal': threadsTotal!,
      if (threadsUnread != null) 'threadsUnread': threadsUnread!,
      if (type != null) 'type': type!,
    };