toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (apiDisabled != null) 'apiDisabled': apiDisabled!,
      if (customRolesSupportLevel != null)
        'customRolesSupportLevel': customRolesSupportLevel!,
      if (description != null) 'description': description!,
      if (name != null) 'name': name!,
      if (onlyInPredefinedRoles != null)
        'onlyInPredefinedRoles': onlyInPredefinedRoles!,
      if (primaryPermission != null) 'primaryPermission': primaryPermission!,
      if (stage != null) 'stage': stage!,
      if (title != null) 'title': title!,
    };