UnitOfWorkResult.fromJson constructor

UnitOfWorkResult.fromJson(
  1. Map json
)

Implementation

UnitOfWorkResult.fromJson(Map json) {
  this.success = json['success'];
  this.error = json['error'] != null
      ? TransactionOperationError.fromJson(json['error'])
      : null;
  if (json['results'] == null) return;

  results = Map();
  (json['results'] as Map).forEach((key, value) {
    results![key] = OperationResult.fromJson(value);
  });
}