toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'key': key,
  'value': value,
  'source': source.name,
  'lastFetched': lastFetched.toIso8601String(),
  if (expiresAt != null) 'expiresAt': expiresAt!.toIso8601String(),
  'overridable': overridable,
};