SFSEOModel.fromMap constructor

SFSEOModel.fromMap(
  1. Map<String, dynamic> data, {
  2. String? id,
})

Implementation

factory SFSEOModel.fromMap(Map<String, dynamic> data, {String? id}) {
  return SFSEOModel(
    title: data['title'] as String,
    description: data['description'] as String?,
    keywords: List<String>.from(data['keywords'] ?? []),
    imageUrl: data['imageUrl'] as String?,
    url: data['url'] as String?,
  );
}