fromJson static method

MMeta? fromJson(
  1. dynamic dyn
)

Implementation

static MMeta? fromJson(dyn) {
  if (dyn == null) return null;
  final json = (dyn as Map).cast<String, dynamic>();
  final mtype = MSchemaRef.fromJson(json["mtype"] as String?);
  return _MMeta(
      mkey: MKey.parsed(json["mkey"] as String?, mtype: mtype),
      mtype: mtype,
      mmodified: json["mmodified"] == null
          ? null
          : DateTime.parse(json["mmodified"].toString()),
      maccount: json["maccount"] as String?,
      isDeleted: json["isDeleted"] == true);
}