takeFrom method

  1. @override
void takeFrom(
  1. dynamic source
)
override

Implementation

@override
void takeFrom(source) {
  if (source == null) return;
  if (source is Map<String, dynamic>) {
    takeFromMap(source, copyEntries: true);
  } else if (source is MModel) {
    takeFromMap(source.wrapped, copyEntries: true);
  } else {
    throw ("Can't take values from unknown type ${source.runtimeType}");
  }
}