ExecuteSQLResult.fromJson constructor

ExecuteSQLResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ExecuteSQLResult.fromJson(Map<String, dynamic> json) {
  return ExecuteSQLResult(
    columnNames: json.containsKey('columnNames')
        ? (json['columnNames'] as List).map((e) => e as String).toList()
        : null,
    values: json.containsKey('values')
        ? (json['values'] as List).map((e) => e as dynamic).toList()
        : null,
    sqlError: json.containsKey('sqlError')
        ? Error.fromJson(json['sqlError'] as Map<String, dynamic>)
        : null,
  );
}