insertFromProto3Json method

Future<Either<ErrorSqlResult, ExecuteSuccesSqlResult>> insertFromProto3Json(
  1. Map<String, dynamic> proto3Json
)

Implementation

Future<Either<ErrorSqlResult, ExecuteSuccesSqlResult>> insertFromProto3Json(
    Map<String, dynamic> proto3Json) async {
  clear();
  try {
    _readProto3Json(proto3Json);

    return insert();
  } on Exception catch (e) {
    return left(ErrorSqlResult('', '', '', [e.toString()]));
  }
}