fromJson static method

Valuable fromJson(
  1. Map params, {
  2. String titleKey = 'name',
  3. String valueKey = 'id',
})

Implementation

static Valuable fromJson(Map<dynamic, dynamic> params, {
  String titleKey = 'name',
  String valueKey = 'id',
}) {
  return Valuable.glass(params[titleKey].toString(), params[valueKey].toString());
}