set method

  1. @override
void set(
  1. dynamic value
)
override

Implementation

@override
void set(value) {
  if (!setFromJson(value)) {
    throw Exception('Cannot set value of type `${value.runtimeType}` to dynamic field. It must be a JSON primitive or `Model` subclass.');
  }
}