toJson method

Map<String, dynamic> toJson()

Implementation

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