toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "block_identifier": block_identifier.toJson(),
      "parent_block_identifier": parent_block_identifier.toJson(),
      "timestamp": timestamp,
      "transactions": transactions.map((e) => e.toJson()),
      "metadata": metadata
    }..removeWhere(
        (dynamic key, dynamic value) => key == null || value == null);