toMap method

Map<String, Object?> toMap()

Serializes to a map, omitting fields that were never supplied (#321).

Implementation

Map<String, Object?> toMap() {
  return <String, Object?>{
    if (_enabled != null) 'attestationEnabled': _enabled,
    if (_refreshInterval != null)
      'attestationRefreshInterval': _refreshInterval,
    if (verificationUrl != null)
      'attestationVerificationUrl': verificationUrl,
  };
}