toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final key = this.key;
  final op = this.op;
  final syncCount = this.syncCount;
  final deviceLastModifiedDate = this.deviceLastModifiedDate;
  final value = this.value;
  return {
    'Key': key,
    'Op': op.toValue(),
    'SyncCount': syncCount,
    if (deviceLastModifiedDate != null)
      'DeviceLastModifiedDate': unixTimestampToJson(deviceLastModifiedDate),
    if (value != null) 'Value': value,
  };
}