get static method

Future<Map<String, dynamic>?> get(
  1. String key
)

Implementation

static Future<Map<String, dynamic>?> get(String key) async {
  Map<String, dynamic>? json = await Query.table(schema.name).where('name', '=', key).select([
    'name as name',
    'value as value',
  ]).first();

  if (json == null) {
    return json;
  }
  return jsonDecode(json['value']);
}