toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'block_identifier': blockIdentifier.toJson(),
    'transaction': transaction.toJson(),
  }..removeWhere((key, value) => value == null);
}