factory TransactionError.fromJson(Map<String, dynamic> json) => TransactionError( errorCode: json['errorCode'] as int, errorMessage: json['errorMessage'] as String, );