updatedAt property Null safety

DateTime? updatedAt

Returns DateTime updatedAt

Implementation

DateTime? get updatedAt {
  if (get<dynamic>(keyVarUpdatedAt) is String) {
    final String? dateAsString = get<String>(keyVarUpdatedAt);
    return dateAsString != null ? _parseDateFormat.parse(dateAsString) : null;
  } else {
    return get<DateTime>(keyVarUpdatedAt);
  }
}