RoleModel class

Constructors

RoleModel({String? id, required String title, String? description, bool isDefault = false, bool admin = false, DateTime? created, DateTime? modified})
RoleModel.fromJson(Map<String, dynamic> json)
Creates a RoleModel from Form.io JSON response.
factory

Properties

admin → bool
Whether this role has administrative privileges.
final
created → DateTime?
Timestamp of when the role was created.
final
description → String?
Description of the role's purpose and permissions.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
Unique identifier of the role.
final
isDefault → bool
Whether this is the default role assigned to new users.
final
modified → DateTime?
Timestamp of when the role was last modified.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
Display title of the role.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts the RoleModel to JSON for API requests.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited