toMap method

Map<String, Object?> toMap()

Creates a map representation of the object.

Implementation

Map<String, Object?> toMap() => {
      'label': label,
      'amount': amount,
      'type': type.toSimpleString(),
      'status': status.toSimpleString(),
    };