BlogEntry.fromLocalJSON constructor

BlogEntry.fromLocalJSON(
  1. Map<String, dynamic> data
)

Implementation

factory BlogEntry.fromLocalJSON(Map<String, dynamic> data) {
  final entry = BlogEntry.fromJSON(data);
  entry.localPracticeSessionId = data['localPracticeSessionId'] is String
      ? data['localPracticeSessionId'] as String : '';
  entry.localOnly = data['localOnly'] == true;
  return entry;
}