toJson method
Implementation
Map<String, dynamic> toJson() => {
"_id": id,
"name": name,
"clientId": clientId,
"pageId": pageId,
"status": status,
"properties": properties?.toJson(),
"components": components == null
? []
: List<dynamic>.from(components!.map((x) => x.toJson())),
"imageKey": imageKey,
"createdBy": createdBy,
"appVersion": appVersion,
"tag": tag,
"usedIn":
usedIn == null ? [] : List<dynamic>.from(usedIn!.map((x) => x)),
"createdAt": createdAt?.toIso8601String(),
"updatedAt": updatedAt?.toIso8601String(),
"__v": v,
};