toJson method
Implementation
@visibleForTesting
Map<String, dynamic> toJson() => {
"name": name,
"updatedAt": updatedAt.toString(),
"groups": groups,
"id": id,
"metadata": metadata,
"createdAt": createdAt.toString(),
}.clearNulls();