BusinessIntro class abstract

Represents an introduction to a business.

Available extensions
Annotations
  • @freezed

Constructors

BusinessIntro({@JsonKey.new(name: 'title') String? title, @JsonKey.new(name: 'message') String? message, @JsonKey.new(name: 'sticker') Sticker? sticker})
Creates a BusinessIntro object.
const
factory
BusinessIntro.fromJson(Map<String, dynamic> json)
Creates a BusinessIntro object from a JSON map.
factory

Properties

copyWith → $BusinessIntroCopyWith<BusinessIntro>
Create a copy of BusinessIntro with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
message String?
Optional. Message text of the business intro.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sticker Sticker?
Optional. Sticker of the business intro.
no setterinherited
title String?
Optional. Title text of the business intro.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_BusinessIntro value)) → TResult

Available on BusinessIntro, provided by the BusinessIntroPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_BusinessIntro value)?) → TResult?

Available on BusinessIntro, provided by the BusinessIntroPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_BusinessIntro value)?, {required TResult orElse()}) → TResult

Available on BusinessIntro, provided by the BusinessIntroPatterns extension

A variant of map that fallback to returning orElse.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this BusinessIntro to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited