toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'_id'] = this.id;
    json[r'count'] = this.count;
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
    json[r'expireAt'] = this.expireAt.toUtc().toIso8601String();
  return json;
}