TableGrant.fromJson constructor

TableGrant.fromJson(
  1. Map<String, dynamic> j
)

Implementation

factory TableGrant.fromJson(Map<String, dynamic> j) => TableGrant(
  name: j['name'],
  namespace: (j['namespace'] as List?)?.cast<String>(),
  write: j['write'] ?? false,
  read: j['read'] ?? true,
  alter: j['alter'] ?? false,
);