added cargo files

This commit is contained in:
2026-03-03 10:57:43 -05:00
parent 478a90e01b
commit 169df46bc2
813 changed files with 227273 additions and 9 deletions

View File

@@ -0,0 +1,35 @@
// Copyright 2020 Ben Hills and the project contributors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:pinepods_mobile/core/extensions.dart';
/// part of a [Podcast].
///
/// Part of the [podcast namespace](https://github.com/Podcastindex-org/podcast-namespace)
class Funding {
/// The URL to the funding/donation/information page.
final String url;
/// The label for the link which will be presented to the user.
final String value;
Funding({
required String url,
required this.value,
}) : url = url.forceHttps;
Map<String, dynamic> toMap() {
return <String, dynamic>{
'url': url,
'value': value,
};
}
static Funding fromMap(Map<String, dynamic> chapter) {
return Funding(
url: chapter['url'] as String,
value: chapter['value'] as String,
);
}
}