toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final id = this.id;
  final revision = this.revision;
  return {
    if (id != null) 'id': id,
    if (revision != null) 'revision': revision,
  };
}