omitWhenAbsent property

bool get omitWhenAbsent

Omit named arg when JSON key missing (non-null + Dart default).

Implementation

bool get omitWhenAbsent => hasConstructorDefault && !isNullable;