initializeFromMap method

void initializeFromMap(
  1. Map? jsonMap
)

Initializes this instance from a Map.

Implementation

void initializeFromMap(Map? jsonMap) {
  var fields = getObjectFields();

  var values = [];

  for (var k in fields) {
    var v = jsonMap![k];
    values.add(v);
  }

  setObjectValues(values);
}