operator []= method
Implementation
operator []=(String fieldName, dynamic value) {
final field = value.fields.firstWhere(
(field) => field.name == fieldName,
orElse: () => throw ArgumentError('Unknown field $fieldName'),
);
field.value = value;
}