MetalBase.from constructor

MetalBase.from(
  1. Map<String, dynamic> metal
)

Implementation

MetalBase.from(Map<String, dynamic> metal)
    : attr = MetalAttr.from(metal['attr']),
      name = metal['name'] ?? '',
      description = metal['description'] ?? '',
      data = metal['data'] ?? '';