ResultSetMetadata.fromJson constructor

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

Implementation

factory ResultSetMetadata.fromJson(Map<String, dynamic> json) {
  return ResultSetMetadata(
    columnCount: json['columnCount'] as int?,
    columnMetadata: (json['columnMetadata'] as List?)
        ?.whereNotNull()
        .map((e) => ColumnMetadata.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}