fromJson static method

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

Implementation

static AttachmentMenuBotColor? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return AttachmentMenuBotColor(
    lightColor: (json['light_color'] as int?) ?? 0,
    darkColor: (json['dark_color'] as int?) ?? 0,
  );
}