Real.fromMap constructor

Real.fromMap(
  1. Map<String, dynamic>? m
)

Constructs an instance using the value for property d (decimal) or i (integer) in Map m.

Implementation

factory Real.fromMap(Map<String, dynamic>? m) =>
    m?.containsKey('d') == true || m?.containsKey('i') == true
        ? Number.fromMap(m) as Real
        : Integer.zero;