fromJson static method

MKey? fromJson(
  1. dynamic value, {
  2. MSchemaRef? mtype,
})

Implementation

static MKey? fromJson(value, {MSchemaRef? mtype}) {
  final v = value;
  if (v is MKey) return v;
  if (value == null) return null;
  return _parse("$value", mtype: mtype)!;
}