toJson method

Map<String, dynamic> toJson()

Implementation

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