toJson method
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
if (createdAt != null) r'createdAt': createdAt!.toUtc().toIso8601String(),
if (description != null) r'description': description,
if (id != null) r'id': id,
if (name != null) r'name': name,
if (permissions != null) r'permissions': permissions,
if (type != null) r'type': type,
if (updatedAt != null) r'updatedAt': updatedAt!.toUtc().toIso8601String(),
};
}