Media class
Constructors
-
Media({String? date, String? dateGmt, String? guid, int? id, String? link, String? modified, String? modifiedGmt, String? slug, String? status, String? type, String? permalinkTemplate, String? generatedSlug, String? title, int? author, String? pingStatus, dynamic meta, String? template, String? altText, String? caption, String? description, String? mediaType, String? mimeType, Map<String, dynamic>? mediaDetails, int? post, String? sourceUrl})
-
-
Media.fromJson(String source)
-
factory
-
Media.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
altText
→ String?
-
Alternative text to display when attachment is not displayed.
final
-
author
→ int?
-
The ID for the author of the object.
final
-
caption
→ String?
-
The attachment caption.
final
-
Whether or not comments are open on the object.
final
-
date
→ String?
-
The date the object was published, in the site's timezone.
final
-
dateGmt
→ String?
-
The date the object was published, as GMT.
final
-
description
→ String?
-
The attachment description.
final
-
generatedSlug
→ String?
-
Slug automatically generated from the object title.
final
-
guid
→ String?
-
The globally unique identifier for the object.
final
-
hashCode
→ int
-
The hash code for this object.
no setteroverride
-
id
→ int?
-
Unique identifier for the object.
final
-
link
→ String?
-
URL to the object.
final
-
mediaDetails
→ Map<String, dynamic>?
-
Details about the media file, specific to its type.
final
-
mediaType
→ String?
-
Attachment type.
final
-
meta
→ dynamic
-
Meta fields.
final
-
mimeType
→ String?
-
The attachment MIME type.
final
-
modified
→ String?
-
The date the object was last modified, in the site's timezone.
final
-
modifiedGmt
→ String?
-
The date the object was last modified, as GMT.
final
-
permalinkTemplate
→ String?
-
Permalink template for the object.
final
-
pingStatus
→ String?
-
Whether or not the object can be pinged.
final
-
post
→ int?
-
The ID for the associated post of the attachment.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
slug
→ String?
-
An alphanumeric identifier for the object unique to its type.
final
-
sourceUrl
→ String?
-
URL to the original attachment file.
final
-
status
→ String?
-
A named status for the object.
final
-
template
→ String?
-
The theme file to use to display the object.
final
-
title
→ String?
-
The title for the object.
final
-
type
→ String?
-
Type of Post for the object.
final
Methods
-
copyWith({String? date, String? dateGmt, String? guid, int? id, String? link, String? modified, String? modifiedGmt, String? slug, String? status, String? type, String? permalinkTemplate, String? generatedSlug, String? title, int? author, String? pingStatus, dynamic meta, String? template, String? altText, String? caption, String? description, String? mediaType, String? mimeType, Map<String, dynamic>? mediaDetails, int? post, String? sourceUrl})
→ Media
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson()
→ String
-
-
toMap()
→ Map<String, dynamic>
-
-
toString()
→ String
-
A string representation of this object.
override