ReadmeJSON class

Constructors

ReadmeJSON({String? content, String? encoding, String? path})
Returns a new ReadmeJSON instance.

Properties

content ↔ String?
Content is the file's text, verbatim and unrendered.
getter/setter pair
encoding ↔ String?
Encoding is always "utf8" — a README is text by definition.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
path ↔ String?
Path is the file the README was found at (README.md, README, …).
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → ReadmeJSON?
Returns a new ReadmeJSON instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ReadmeJSON>
mapFromJson(dynamic json) → Map<String, ReadmeJSON>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ReadmeJSON>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.