TableScript.fromMap constructor

TableScript.fromMap(
  1. Map<String, Object?> json
)

Implementation

factory TableScript.fromMap(Map<String, Object?> json) {
  return TableScript(
    tableName: json['table_name'] as String,
    script: (json['script'] as String?) ?? '',
    startSync: (json['start_sync'] as num?)?.toInt() ?? 0,
    retentionDays: (json['retention_days'] as num?)?.toInt(),
    readOnly: _readBool(json['read_only']),
    writeOnly: _readBool(json['write_only']),
  );
}