defaultValue property

  1. @override
String? defaultValue
final

The value to use if the source does not contain this key or if the value is null. Only applicable during deserialization.

Must be a primitive type: bool, DateTime, double, int, List, Map, Set, or String. defaultValue must also match the field's Type.

Implementation

@override
final String? defaultValue;