ResultSet.fromJson constructor

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

Implementation

factory ResultSet.fromJson(Map<String, dynamic> json) {
  return ResultSet(
    resultSetMetadata: json['ResultSetMetadata'] != null
        ? ResultSetMetadata.fromJson(
            json['ResultSetMetadata'] as Map<String, dynamic>)
        : null,
    rows: (json['Rows'] as List?)
        ?.whereNotNull()
        .map((e) => Row.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}