LogPublishingOptionsStatus.fromJson constructor

LogPublishingOptionsStatus.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory LogPublishingOptionsStatus.fromJson(Map<String, dynamic> json) {
  return LogPublishingOptionsStatus(
    options: (json['Options'] as Map<String, dynamic>?)?.map((k, e) =>
        MapEntry(k.toLogType(),
            LogPublishingOption.fromJson(e as Map<String, dynamic>))),
    status: json['Status'] != null
        ? OptionStatus.fromJson(json['Status'] as Map<String, dynamic>)
        : null,
  );
}