setFromJson method

  1. @override
bool setFromJson(
  1. dynamic json
)
override

Convert any given json to correspondig types and store it. If fails, it returns false.

Implementation

@override
bool setFromJson(json) {
  final result = super.setFromJson(json);
  if (result == true) {
    isNull = false;
  } else {
    isNull = true;
    _map.clear();
  }
  return true;
}