toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'atSign': atSign,
    'type': type.toString(),
    'categories': categories!.map((e) => e.toString()).toList(),
    'favourite': favourite,
    'blocked': blocked,
    'personas': personas,
    'tags': tags,
    'clazz': clazz,
    'version': version,
    'createdOn': UtilServices.dateToString(createdOn!),
    'updatedOn': UtilServices.dateToString(updatedOn!),
  };
}