fill method

T fill(
  1. Map<String, dynamic> attributes
)
inherited

Fill the model with an array of attributes.

Implementation

T fill(Map<String, dynamic> attributes) {
  for (final key in attributes.keys) {
    if (isFillable(key)) {
      setAttribute(key, attributes[key]);
    }
  }
  return this as T;
}