TableMeta.fromJson constructor

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

Implementation

factory TableMeta.fromJson(Map<String, dynamic> json) => TableMeta(
      name: json['name'] as String,
      schema: Schema.fromJson(json['schema'] as Map<String, dynamic>),
      rootPageId: json['rootPageId'] as int? ?? -1,
      rowCount: json['rowCount'] as int? ?? 0,
      indexes: Map<String, int>.from(json['indexes'] as Map? ?? {}),
    );